about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHeiko Eißfeldt <heiko@hexco.de>2019-07-13 23:12:36 +0200
committerHeiko Eißfeldt <heiko@hexco.de>2019-07-13 23:12:36 +0200
commitc204efaaab59551bb325af64620626be40aae993 (patch)
tree0e2f078b894d5454f2a81b62cff3943b9158e9f8
parent0f1313761686a61983a4deb2646a8265f8acc214 (diff)
downloadafl++-c204efaaab59551bb325af64620626be40aae993.tar.gz
Compile fix for LLVM 3.8.0
-rw-r--r--llvm_mode/LLVMInsTrim.so.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc
index bba0b86c..0c75eb4e 100644
--- a/llvm_mode/LLVMInsTrim.so.cc
+++ b/llvm_mode/LLVMInsTrim.so.cc
@@ -40,7 +40,12 @@ namespace {
       AU.addRequired<DominatorTreeWrapperPass>();
     }
 
-    StringRef getPassName() const override {
+#if LLVM_VERSION_MAJOR < 4
+    const char *
+#else
+    StringRef
+#endif
+              getPassName() const override {
       return "InstTrim Instrumentation";
     }