diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2017-02-24 06:58:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 06:58:02 +0000 |
commit | 1b67624c3a2fc1ca6f60d0a2b0f675d046dbba76 (patch) | |
tree | 64afcf8a35004945199a90cb22dc5817806dc235 /include | |
parent | 013962e6bbd5606e3020407721b6e8347e408ced (diff) | |
parent | 343f4e1a653da5ff10c86c4b62c378e268e32027 (diff) | |
download | klee-1b67624c3a2fc1ca6f60d0a2b0f675d046dbba76.tar.gz |
Merge pull request #603 from jirislaby/no_list_copy
CommandLine: do not copy list in optionIsSet
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/CommandLine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/klee/CommandLine.h b/include/klee/CommandLine.h index 95aa51e0..cc186db7 100644 --- a/include/klee/CommandLine.h +++ b/include/klee/CommandLine.h @@ -70,8 +70,7 @@ extern llvm::cl::opt<klee::MetaSMTBackendType> MetaSMTBackend; //A bit of ugliness so we can use cl::list<> like cl::bits<>, see queryLoggingOptions template <typename T> -static bool optionIsSet(llvm::cl::list<T> list, T option) -{ +static bool optionIsSet(llvm::cl::list<T> &list, T option) { return std::find(list.begin(), list.end(), option) != list.end(); } |