about summary refs log tree commit diff
path: root/llvm_mode/afl-clang-fast.c
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-clang-fast.c
parente9fb5f4cbc9f3514d686ebf813b16829ed73b3da (diff)
downloadafl++-b5d1a021efaede5e084418fe552330590ee43641.tar.gz
fix llvm and afl-showmap
Diffstat (limited to 'llvm_mode/afl-clang-fast.c')
-rw-r--r--llvm_mode/afl-clang-fast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index 10cb3fa3..0597ba17 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -371,8 +371,12 @@ static void edit_params(u32 argc, char **argv, char **envp) {
 
     if (instrument_mode == INSTRUMENT_PCGUARD) {
 
+#if LLVM_VERSION_MAJOR >= 4
       cc_params[cc_par_cnt++] =
           "-fsanitize-coverage=trace-pc-guard";  // edge coverage by default
+#else
+      FATAL("pcguard instrumentation requires llvm 4.0.1+");
+#endif
 
     } else {