Skip to content

Commit 9ba7913

Browse files
committed
Fixed default construction of MMI in the AsmPrinterDwarfTest.
1 parent 753d99a commit 9ba7913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ class AsmPrinterDebugHandlerTest : public AsmPrinterFixtureBase {
451451
AP->addDebugHandler(std::make_unique<TestDebugHandler>(*this, AP));
452452
LLVMTargetMachine *LLVMTM = static_cast<LLVMTargetMachine *>(&AP->TM);
453453
legacy::PassManager PM;
454-
MachineModuleInfo MMI;
454+
MachineModuleInfo MMI(LLVMTM);
455455
PM.add(new MachineModuleInfoWrapperPass(MMI));
456456
PM.add(TestPrinter->releaseAP()); // Takes ownership of destroying AP
457457
LLVMContext Context;

0 commit comments

Comments
 (0)