about summary refs log tree commit diff
path: root/llvm_mode/compare-transform-pass.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-06-03 23:20:30 +0200
committervan Hauser <vh@thc.org>2019-06-03 23:20:30 +0200
commit865212899a857f7afe96728d402db0de39ac7589 (patch)
tree143ad5ba824ea1ca21333cd31b5cc71c32fa84da /llvm_mode/compare-transform-pass.so.cc
parentb3a504248f566e089175b5b42b0bd78c9148993a (diff)
downloadafl++-865212899a857f7afe96728d402db0de39ac7589.tar.gz
llvm support for up to version 8
Diffstat (limited to 'llvm_mode/compare-transform-pass.so.cc')
-rw-r--r--llvm_mode/compare-transform-pass.so.cc8
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 75c280f4..6652de0f 100644
--- a/llvm_mode/compare-transform-pass.so.cc
+++ b/llvm_mode/compare-transform-pass.so.cc
@@ -73,7 +73,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 __clang_major__ < 9
+  Constant* 
+#else
+  FunctionCallee
+#endif
+               c = M.getOrInsertFunction("tolower",
                                          Int32Ty,
                                          Int32Ty
 #if __clang_major__ < 7