[llvm] [NewPM] Set diagnostic handler in `MachineModuleAnalysis` (PR #88229)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 10:57:16 PDT 2024
================
@@ -202,12 +211,17 @@ TEST_F(PassManagerTest, Basic) {
TestMachineFunctionPass(Count, Counts)));
MPM.addPass(TestMachineModulePass(Count, Counts));
MFPM.addPass(TestMachineFunctionPass(Count, Counts));
+ MFPM.addPass(ReportWarningPass());
MPM.addPass(createModuleToMachineFunctionPassAdaptor(std::move(MFPM)));
+ testing::internal::CaptureStderr();
----------------
aeubanks wrote:
TIL `CaptureStderr`, this is good to know
I'd separate the `ReportWarningPass` run out to its own test that doesn't check `Counts`
https://github.com/llvm/llvm-project/pull/88229
More information about the llvm-commits
mailing list