about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-10-16 12:56:31 +0200
committerhexcoder- <heiko@hexco.de>2021-10-16 12:56:31 +0200
commitc49b30879474042f16dcf8de200c603a47965ea4 (patch)
treefa098c42b2f7b4787beb73556bb9fe45acdbcd0a
parent379c5806580dd58824df0f4fb7d215841d1bd459 (diff)
downloadafl++-c49b30879474042f16dcf8de200c603a47965ea4.tar.gz
switch PreservedAnalyses from none to all
-rw-r--r--instrumentation/afl-llvm-pass.so.cc4
-rw-r--r--instrumentation/compare-transform-pass.so.cc4
-rw-r--r--instrumentation/split-compares-pass.so.cc2
-rw-r--r--instrumentation/split-switches-pass.so.cc2
4 files changed, 6 insertions, 6 deletions
diff --git a/instrumentation/afl-llvm-pass.so.cc b/instrumentation/afl-llvm-pass.so.cc
index c2b87ecb..92999443 100644
--- a/instrumentation/afl-llvm-pass.so.cc
+++ b/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);
diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc
index e6695185..ce8efaa7 100644
--- a/instrumentation/compare-transform-pass.so.cc
+++ b/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);
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc
index 8d4935f5..75a9c35c 100644
--- a/instrumentation/split-compares-pass.so.cc
+++ b/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) {
 
diff --git a/instrumentation/split-switches-pass.so.cc b/instrumentation/split-switches-pass.so.cc
index ba143dca..b8cd61c3 100644
--- a/instrumentation/split-switches-pass.so.cc
+++ b/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);