disable compare-transform-pass when lto_mode and autodictionary is used.

This commit is contained in:
hexcoder-
2020-04-15 22:27:32 +02:00
parent 21f696f02e
commit 7e2c52f2b9
2 changed files with 12 additions and 10 deletions

View File

@ -223,8 +223,10 @@ static void edit_params(u32 argc, char **argv, char **envp) {
}
if (getenv("LAF_TRANSFORM_COMPARES") ||
getenv("AFL_LLVM_LAF_TRANSFORM_COMPARES")) {
if (!getenv("AFL_LLVM_LTO_AUTODICTIONARY") // disabled when autodictionary
&& instrument_mode != INSTRUMENT_LTO // and lto_mode is used
&& (getenv("LAF_TRANSFORM_COMPARES") ||
getenv("AFL_LLVM_LAF_TRANSFORM_COMPARES"))) {
cc_params[cc_par_cnt++] = "-Xclang";
cc_params[cc_par_cnt++] = "-load";