LLVM 14 fixes

This commit is contained in:
Raphael Isemann
2022-02-22 10:54:51 +01:00
parent a5943dc782
commit 05119990b6
7 changed files with 12 additions and 8 deletions

View File

@ -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) {