[llvm] c99fdd4 - [DebugInfo][NFC] Initialize a new object field in unittests
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 27 06:30:37 PDT 2021
Author: Jeremy Morse
Date: 2021-10-27T14:29:43+01:00
New Revision: c99fdd456ff4192fc91781732724861bf000ebda
URL: https://github.com/llvm/llvm-project/commit/c99fdd456ff4192fc91781732724861bf000ebda
DIFF: https://github.com/llvm/llvm-project/commit/c99fdd456ff4192fc91781732724861bf000ebda.diff
LOG: [DebugInfo][NFC] Initialize a new object field in unittests
Over in e7084ceab3122 the InstrRefBasedLDV class grew a MachineRegisterInfo
pointer to lookup register sizes -- however, that field wasn't initialized
in the corresponding unit tests. This patch initializes it!
Fixes a buildbot failure reported on D112006
Added:
Modified:
llvm/unittests/CodeGen/InstrRefLDVTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/CodeGen/InstrRefLDVTest.cpp b/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
index 29a98f960abe5..2900c59a65d58 100644
--- a/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
+++ b/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
@@ -142,6 +142,7 @@ class InstrRefLDVTest : public testing::Test {
LDV->TRI = STI.getRegisterInfo();
LDV->TFI = STI.getFrameLowering();
LDV->MFI = &MF->getFrameInfo();
+ LDV->MRI = &MF->getRegInfo();
DomTree = std::make_unique<MachineDominatorTree>(*MF);
LDV->DomTree = &*DomTree;
More information about the llvm-commits
mailing list