about summary refs log tree commit diff
path: root/llvm_mode/split-compares-pass.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-06-02 22:23:25 +0200
committervan Hauser <vh@thc.org>2019-06-02 22:23:25 +0200
commit49a08e38b9afd4506e7efd191533884abe803939 (patch)
treeea444e9cc1f2892f55ff1f0e3ea71c2eea777e2f /llvm_mode/split-compares-pass.so.cc
parentc9d2c5f26925f7b442fe8b8e92ced6bfdb6944d3 (diff)
downloadafl++-49a08e38b9afd4506e7efd191533884abe803939.tar.gz
llvm 5.0 and 6.0 workaround
Diffstat (limited to 'llvm_mode/split-compares-pass.so.cc')
-rw-r--r--llvm_mode/split-compares-pass.so.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm_mode/split-compares-pass.so.cc b/llvm_mode/split-compares-pass.so.cc
index 5bd01d62..ae6a2d52 100644
--- a/llvm_mode/split-compares-pass.so.cc
+++ b/llvm_mode/split-compares-pass.so.cc
@@ -36,7 +36,11 @@ namespace {
 #if __clang_major__ >= 4
       StringRef getPassName() const override {
 #else
+ #ifndef __GNUG__
       const char * getPassName() const override {
+ #else
+      StringRef getPassName() const override {
+ #endif
 #endif
         return "simplifies and splits ICMP instructions";
       }