about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-03-16 20:10:42 +0100
committervan Hauser <vh@thc.org>2020-03-16 20:10:42 +0100
commit35720304be17b94c3167cd3ce2bb8afe64bfe538 (patch)
tree911ef66cfa9481c2c607b8465cdafe788f8523e2
parent09b2565b1bc4ac3304e9b4db11e3af186c28fa20 (diff)
downloadafl++-35720304be17b94c3167cd3ce2bb8afe64bfe538.tar.gz
not all opt are compiled with polly support
-rw-r--r--llvm_mode/afl-ld.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm_mode/afl-ld.c b/llvm_mode/afl-ld.c
index 860ec569..eb46c85c 100644
--- a/llvm_mode/afl-ld.c
+++ b/llvm_mode/afl-ld.c
@@ -226,14 +226,11 @@ static void edit_params(int argc, char **argv) {
   link_params[link_param_cnt++] = linked_file;
 
   opt_params[0] = alloc_printf("%s/%s", LLVM_BINDIR, "opt");
-  if (getenv("AFL_DONT_OPTIMIZE") == NULL) {
-
+  if (getenv("AFL_DONT_OPTIMIZE") == NULL)
     opt_params[opt_param_cnt++] = "-O3";
-    opt_params[opt_param_cnt++] = "--polly";
-
-  } else
-
+  else
     opt_params[opt_param_cnt++] = "-O0";
+
   // opt_params[opt_param_cnt++] = "-S"; // only when debugging
   opt_params[opt_param_cnt++] = linked_file;  // input: .ll file
   opt_params[opt_param_cnt++] = "-o";