about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-common.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-13 22:34:11 +0200
committervan Hauser <vh@thc.org>2020-08-13 22:34:11 +0200
commitb5d1a021efaede5e084418fe552330590ee43641 (patch)
treec4de3f80bd21fd5229a54b7fb9fb0317ddd27b51 /llvm_mode/afl-llvm-common.cc
parente9fb5f4cbc9f3514d686ebf813b16829ed73b3da (diff)
downloadafl++-b5d1a021efaede5e084418fe552330590ee43641.tar.gz
fix llvm and afl-showmap
Diffstat (limited to 'llvm_mode/afl-llvm-common.cc')
-rw-r--r--llvm_mode/afl-llvm-common.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm_mode/afl-llvm-common.cc b/llvm_mode/afl-llvm-common.cc
index 4b864cf7..4a94ae89 100644
--- a/llvm_mode/afl-llvm-common.cc
+++ b/llvm_mode/afl-llvm-common.cc
@@ -260,6 +260,8 @@ void scanForDangerousFunctions(llvm::Module *M) {
 
   if (!M) return;
 
+#if LLVM_VERSION_MAJOR >= 4
+
   for (GlobalIFunc &IF : M->ifuncs()) {
 
     StringRef ifunc_name = IF.getName();
@@ -325,6 +327,8 @@ void scanForDangerousFunctions(llvm::Module *M) {
 
   }
 
+#endif
+
 }
 
 static std::string getSourceName(llvm::Function *F) {