File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -598,8 +598,9 @@ void VirtRegRewriter::rewrite() {
598598 SmallVector<Register, 8 > SuperDefs;
599599 SmallVector<Register, 8 > SuperKills;
600600
601- const bool IsFailedAlloc = MF->getProperties ().hasProperty (
601+ const bool IsValidAlloc = ! MF->getProperties ().hasProperty (
602602 MachineFunctionProperties::Property::FailedRegAlloc);
603+
603604 for (MachineFunction::iterator MBBI = MF->begin (), MBBE = MF->end ();
604605 MBBI != MBBE; ++MBBI) {
605606 LLVM_DEBUG (MBBI->print (dbgs (), Indexes));
@@ -619,7 +620,7 @@ void VirtRegRewriter::rewrite() {
619620 assert (Register (PhysReg).isPhysical ());
620621
621622 RewriteRegs.insert (PhysReg);
622- assert ((!MRI->isReserved (PhysReg) || IsFailedAlloc ) &&
623+ assert ((!MRI->isReserved (PhysReg) || !IsValidAlloc ) &&
623624 " Reserved register assignment" );
624625
625626 // Preserve semantics of sub-register operands.
You can’t perform that action at this time.
0 commit comments