fix compilation for llvm 3.8.0

This commit is contained in:
hexcoder-
2021-03-26 16:19:07 +01:00
parent 1f3d5c271a
commit 1006abffad

View File

@ -104,7 +104,8 @@ bool isIgnoreFunction(const llvm::Function *F) {
for (auto const &ignoreListFunc : ignoreSubstringList) { 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; }
} }