summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/MI/LiveIntervalTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/MI/LiveIntervalTest.cpp')
-rw-r--r--llvm/unittests/MI/LiveIntervalTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp
index ad8c3e6010d..c81f13f6e67 100644
--- a/llvm/unittests/MI/LiveIntervalTest.cpp
+++ b/llvm/unittests/MI/LiveIntervalTest.cpp
@@ -63,10 +63,10 @@ std::unique_ptr<Module> parseMIR(LLVMContext &Context,
M->setDataLayout(TM.createDataLayout());
- MachineModuleInfo *MMI = new MachineModuleInfo(&TM);
- if (MIR->parseMachineFunctions(*M, *MMI))
+ MachineModuleInfoWrapperPass *MMIWP = new MachineModuleInfoWrapperPass(&TM);
+ if (MIR->parseMachineFunctions(*M, MMIWP->getMMI()))
return nullptr;
- PM.add(MMI);
+ PM.add(MMIWP);
return M;
}
OpenPOWER on IntegriCloud