about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--llvm_mode/afl-clang-fast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index 6a6414ad..1f3463eb 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -716,6 +716,9 @@ int main(int argc, char **argv, char **envp) {
     }
 
   }
+  
+  if (instrument_opt_mode && lto_mode)
+    FATAL("CTX and NGRAM can not be used in LTO mode (and would make LTO useless)");
 
   if (!instrument_opt_mode) {