about summary refs log tree commit diff
path: root/src/afl-cc.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-02-22 13:51:39 +0100
committerGitHub <noreply@github.com>2022-02-22 13:51:39 +0100
commit675d17d737ee5dee88766d9c181567771592c94c (patch)
tree20871fe51ae37869e5b400e07b9832e465904124 /src/afl-cc.c
parenta5943dc782d1a6047aaa8f455ab37e4a31369311 (diff)
parent05119990b6075aaf8f16a385a763651f68b8b1ef (diff)
downloadafl++-675d17d737ee5dee88766d9c181567771592c94c.tar.gz
Merge pull request #1334 from Teemperor/llvm14
Fix compilation against LLVM 14
Diffstat (limited to 'src/afl-cc.c')
-rw-r--r--src/afl-cc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index ed57ca1e..bacd9de9 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -549,8 +549,8 @@ static void edit_params(u32 argc, char **argv, char **envp) {
     }
 
 #if LLVM_MAJOR >= 13
-    // fuck you llvm 13
-    cc_params[cc_par_cnt++] = "-fno-experimental-new-pass-manager";
+    // Use the old pass manager in LLVM 14 which the afl++ passes still use.
+    cc_params[cc_par_cnt++] = "-flegacy-pass-manager";
 #endif
 
     if (lto_mode && !have_c) {