diff options
author | Hexcoder <heiko@hexco.de> | 2019-06-03 23:41:42 +0200 |
---|---|---|
committer | Hexcoder <heiko@hexco.de> | 2019-06-03 23:41:42 +0200 |
commit | 8cf91250976edafb0475a6d25091443d6b0f274b (patch) | |
tree | 7bc662c7737670ffc5e738711b68c8147e4b9070 /llvm_mode/compare-transform-pass.so.cc | |
parent | b4678b77f1e090e78935a50c98a4493ee2abda09 (diff) | |
parent | 865212899a857f7afe96728d402db0de39ac7589 (diff) | |
download | afl++-8cf91250976edafb0475a6d25091443d6b0f274b.tar.gz |
Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus
Diffstat (limited to 'llvm_mode/compare-transform-pass.so.cc')
-rw-r--r-- | llvm_mode/compare-transform-pass.so.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm_mode/compare-transform-pass.so.cc b/llvm_mode/compare-transform-pass.so.cc index 7222ea27..54d33e18 100644 --- a/llvm_mode/compare-transform-pass.so.cc +++ b/llvm_mode/compare-transform-pass.so.cc @@ -69,7 +69,13 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, const IntegerType *Int8Ty = IntegerType::getInt8Ty(C); IntegerType *Int32Ty = IntegerType::getInt32Ty(C); IntegerType *Int64Ty = IntegerType::getInt64Ty(C); - Constant* c = M.getOrInsertFunction("tolower", + +#if LLVM_VERSION_MAJOR < 9 + Constant* +#else + FunctionCallee +#endif + c = M.getOrInsertFunction("tolower", Int32Ty, Int32Ty #if LLVM_VERSION_MAJOR < 5 |