about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-08 16:33:25 +0100
committervan Hauser <vh@thc.org>2020-11-08 16:33:25 +0100
commit585ba4c1dda6d8706db122e15718b867fd5489cd (patch)
tree58f0a4f6930ad8a6c1885e0ec62741112fd9b5c9 /src
parenta728e8f9a5518017cde12bdb6ba795a6bcb47b0a (diff)
downloadafl++-585ba4c1dda6d8706db122e15718b867fd5489cd.tar.gz
fix for llvm 10.0.0
Diffstat (limited to 'src')
-rw-r--r--src/afl-cc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 46468dda..a1c1d676 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -38,6 +38,12 @@
 #if !defined(LLVM_MAJOR)
   #define LLVM_MAJOR 0
 #endif
+#if (LLVM_MINOR - 0 == 0)
+  #undef LLVM_MINOR
+#endif
+#if !defined(LLVM_MINOR)
+  #define LLVM_MINOR 0
+#endif
 
 static u8 * obj_path;                  /* Path to runtime libraries         */
 static u8 **cc_params;                 /* Parameters passed to the real CC  */