about summary refs log tree commit diff
path: root/llvm_mode/compare-transform-pass.so.cc
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-08-07 20:25:22 +0200
committerhexcoder- <heiko@hexco.de>2019-08-07 20:25:22 +0200
commita6fe8ae0af884c76ea92128a6fd878a13dd3abf3 (patch)
treecea35e987e6e76553fdf32d75fbbec5a62002df0 /llvm_mode/compare-transform-pass.so.cc
parentdc2c46e23c067eaeadc042fe84c603a496e90cf6 (diff)
downloadafl++-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.cc4
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) {