diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-23 22:08:27 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-23 22:08:27 +0000 |
commit | 8c3fbdc6c4649f8c3c018cf32be4407c672e574c (patch) | |
tree | 4b1501127fddc6956350b27ea9cba6d871ef28ed /llvm/unittests/MI/LiveIntervalTest.cpp | |
parent | d0cfb7344e101f656be024d29d9cd0aaefea4288 (diff) | |
download | bcm5719-llvm-8c3fbdc6c4649f8c3c018cf32be4407c672e574c.tar.gz bcm5719-llvm-8c3fbdc6c4649f8c3c018cf32be4407c672e574c.zip |
Revert r279564. It introduces undefined behavior (binding a reference to a
dereferenced null pointer) in MachineModuleInfo::MachineModuleInfo that causes
-Werror builds (including several buildbots) to fail.
llvm-svn: 279580
Diffstat (limited to 'llvm/unittests/MI/LiveIntervalTest.cpp')
-rw-r--r-- | llvm/unittests/MI/LiveIntervalTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp index 5fe5c916719..12c3ad66073 100644 --- a/llvm/unittests/MI/LiveIntervalTest.cpp +++ b/llvm/unittests/MI/LiveIntervalTest.cpp @@ -70,7 +70,8 @@ std::unique_ptr<Module> parseMIR(LLVMContext &Context, return nullptr; const LLVMTargetMachine &LLVMTM = static_cast<const LLVMTargetMachine&>(TM); - LLVMTM.addMachineModuleInfo(PM, MIR.get()); + LLVMTM.addMachineModuleInfo(PM); + LLVMTM.addMachineFunctionAnalysis(PM, MIR.get()); return M; } |