diff options
author | hexcoder- <heiko@hexco.de> | 2019-08-07 20:25:22 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-08-07 20:25:22 +0200 |
commit | a6fe8ae0af884c76ea92128a6fd878a13dd3abf3 (patch) | |
tree | cea35e987e6e76553fdf32d75fbbec5a62002df0 /llvm_mode/compare-transform-pass.so.cc | |
parent | dc2c46e23c067eaeadc042fe84c603a496e90cf6 (diff) | |
download | afl++-a6fe8ae0af884c76ea92128a6fd878a13dd3abf3.tar.gz |
fix compilation error with llvm 9.0
Diffstat (limited to 'llvm_mode/compare-transform-pass.so.cc')
-rw-r--r-- | llvm_mode/compare-transform-pass.so.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm_mode/compare-transform-pass.so.cc b/llvm_mode/compare-transform-pass.so.cc index d0dbe8ec..e7886db1 100644 --- a/llvm_mode/compare-transform-pass.so.cc +++ b/llvm_mode/compare-transform-pass.so.cc @@ -82,7 +82,11 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, const , nullptr #endif ); +#if LLVM_VERSION_MAJOR < 9 Function* tolowerFn = cast<Function>(c); +#else + FunctionCallee tolowerFn = c; +#endif /* iterate over all functions, bbs and instruction and add suitable calls to strcmp/memcmp/strncmp/strcasecmp/strncasecmp */ for (auto &F : M) { |