diff options
author | hexcoder- <heiko@hexco.de> | 2021-03-26 16:19:07 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-03-26 16:19:07 +0100 |
commit | 1006abffade85df1108112b728e09a666d8388a8 (patch) | |
tree | e08af8f121d174ad15e5e1d48d320a14eaa936ce | |
parent | 1f3d5c271a50daedd9924e1f792c0e3260d89e00 (diff) | |
download | afl++-1006abffade85df1108112b728e09a666d8388a8.tar.gz |
fix compilation for llvm 3.8.0
-rw-r--r-- | instrumentation/afl-llvm-common.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/instrumentation/afl-llvm-common.cc b/instrumentation/afl-llvm-common.cc index 74943fb2..24498f3e 100644 --- a/instrumentation/afl-llvm-common.cc +++ b/instrumentation/afl-llvm-common.cc @@ -104,7 +104,8 @@ bool isIgnoreFunction(const llvm::Function *F) { for (auto const &ignoreListFunc : ignoreSubstringList) { - if (F->getName().contains(ignoreListFunc)) { return true; } + // hexcoder: F->getName().contains() not avaiilable in llvm 3.8.0 + if (StringRef::npos != F->getName().find(ignoreListFunc)) { return true; } } |