From c49b30879474042f16dcf8de200c603a47965ea4 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 16 Oct 2021 12:56:31 +0200 Subject: switch PreservedAnalyses from none to all --- instrumentation/compare-transform-pass.so.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'instrumentation/compare-transform-pass.so.cc') 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) { 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); -- cgit 1.4.1