switch PreservedAnalyses from none to all
MODIFY
instrumentation/afl-llvm-pass.so.cc
instrumentation/afl-llvm-pass.so.cc
@@ -115,7 +115,7 @@ llvmGetPassPluginInfo() {
PB.registerPipelineParsingCallback(
[](StringRef Name, ModulePassManager &MPM, ArrayRef<PipelineElement>) {
if ( Name == "AFLCoverage" ) {
- MPM.addPass(AFLCoverage);
+ MPM.addPass(AFLCoverage());
return true;
} else {
return false;
@@ -168,7 +168,7 @@ PreservedAnalyses AFLCoverage::run(Module &M, ModuleAnalysisManager &MAM) {
u32 rand_seed;
unsigned int cur_loc = 0;
- auto PA = PreservedAnalyses::none();
+ auto PA = PreservedAnalyses::all();
/* Setup random() so we get Actually Random(TM) outputs from AFL_R() */
gettimeofday(&tv, &tz);

MODIFY
instrumentation/compare-transform-pass.so.cc
instrumentation/compare-transform-pass.so.cc
@@ -95,7 +95,7 @@ llvmGetPassPluginInfo() {
PB.registerPipelineParsingCallback(
[](StringRef Name, ModulePassManager &MPM, ArrayRef<PipelineElement>) {
if ( Name == "comparetransform" ) {
- MPM.addPass(CompareTransform);
+ MPM.addPass(CompareTransform());
return true;
} else {
return false;
@@ -622,7 +622,7 @@ PreservedAnalyses CompareTransform::run(Module &M, ModuleAnalysisManager &MAM) {
else
be_quiet = 1;
- auto PA = PreservedAnalyses::none();
+ auto PA = PreservedAnalyses::all();
transformCmps(M, true, true, true, true, true);
verifyModule(M);

MODIFY
instrumentation/split-compares-pass.so.cc
instrumentation/split-compares-pass.so.cc
@@ -1365,7 +1365,7 @@ PreservedAnalyses SplitComparesTransform::run(Module &M, ModuleAnalysisManager &
}
- auto PA = PreservedAnalyses::none();
+ auto PA = PreservedAnalyses::all();
if (enableFPSplit) {

MODIFY
instrumentation/split-switches-pass.so.cc
instrumentation/split-switches-pass.so.cc
@@ -442,7 +442,7 @@ PreservedAnalyses SplitSwitchesTransform::run(Module &M, ModuleAnalysisManager &
else
be_quiet = 1;
- auto PA = PreservedAnalyses::none();
+ auto PA = PreservedAnalyses::all();
splitSwitches(M);
verifyModule(M);

switch PreservedAnalyses from none to all