diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2021-10-27 14:19:16 +0100 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2021-10-27 14:29:43 +0100 |
commit | c99fdd456ff4192fc91781732724861bf000ebda (patch) | |
tree | daedec45195f0cb0468e4de05cca1f8bc7741577 | |
parent | f01fafdcd469eab1e76f4bbb549d0b8729b5b195 (diff) | |
download | llvm-c99fdd456ff4192fc91781732724861bf000ebda.tar.gz |
[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
-rw-r--r-- | llvm/unittests/CodeGen/InstrRefLDVTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/CodeGen/InstrRefLDVTest.cpp b/llvm/unittests/CodeGen/InstrRefLDVTest.cpp index 29a98f960abe..2900c59a65d5 100644 --- a/llvm/unittests/CodeGen/InstrRefLDVTest.cpp +++ b/llvm/unittests/CodeGen/InstrRefLDVTest.cpp @@ -142,6 +142,7 @@ public: 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; |