Skip to content

Commit b2be4e3

Browse files
committed
only preserve CFG
1 parent d6256a4 commit b2be4e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/CodeGen/XRayInstrumentation.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,9 @@ XRayInstrumentationPass::run(MachineFunction &MF,
184184
if (!XRayInstrumentation(MDT, MLI).run(MF))
185185
return PreservedAnalyses::all();
186186

187-
return getMachineFunctionPassPreservedAnalyses()
188-
.preserve<MachineDominatorTreeAnalysis>()
189-
.preserve<MachineLoopAnalysis>()
190-
.preserveSet<CFGAnalyses>();
187+
auto PA = getMachineFunctionPassPreservedAnalyses();
188+
PA.preserveSet<CFGAnalyses>();
189+
return PA;
191190
}
192191

193192
bool XRayInstrumentationLegacy::runOnMachineFunction(MachineFunction &MF) {

0 commit comments

Comments
 (0)