Skip to content

Commit b7b945b

Browse files
committed
LiveRangeCalc: Pass output stream to verify
Restores output on this failure after 71ca9fc
1 parent 0259f92 commit b7b945b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/LiveRangeCalc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ bool LiveRangeCalc::findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB,
208208

209209
#ifndef NDEBUG
210210
if (MBB->pred_empty()) {
211-
MBB->getParent()->verify();
211+
MBB->getParent()->verify(nullptr, nullptr, &errs());
212212
errs() << "Use of " << printReg(PhysReg, MRI->getTargetRegisterInfo())
213213
<< " does not have a corresponding definition on every path:\n";
214214
const MachineInstr *MI = Indexes->getInstructionFromIndex(Use);
@@ -223,7 +223,7 @@ bool LiveRangeCalc::findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB,
223223
for (MCRegAliasIterator Alias(PhysReg, TRI, false); !IsLiveIn && Alias.isValid(); ++Alias)
224224
IsLiveIn = MBB->isLiveIn(*Alias);
225225
if (!IsLiveIn) {
226-
MBB->getParent()->verify();
226+
MBB->getParent()->verify(nullptr, nullptr, &errs());
227227
errs() << "The register " << printReg(PhysReg, TRI)
228228
<< " needs to be live in to " << printMBBReference(*MBB)
229229
<< ", but is missing from the live-in list.\n";

0 commit comments

Comments
 (0)