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() {
598
598
SmallVector<Register, 8 > SuperDefs;
599
599
SmallVector<Register, 8 > SuperKills;
600
600
601
- const bool IsFailedAlloc = MF->getProperties ().hasProperty (
601
+ const bool IsValidAlloc = ! MF->getProperties ().hasProperty (
602
602
MachineFunctionProperties::Property::FailedRegAlloc);
603
+
603
604
for (MachineFunction::iterator MBBI = MF->begin (), MBBE = MF->end ();
604
605
MBBI != MBBE; ++MBBI) {
605
606
LLVM_DEBUG (MBBI->print (dbgs (), Indexes));
@@ -619,7 +620,7 @@ void VirtRegRewriter::rewrite() {
619
620
assert (Register (PhysReg).isPhysical ());
620
621
621
622
RewriteRegs.insert (PhysReg);
622
- assert ((!MRI->isReserved (PhysReg) || IsFailedAlloc ) &&
623
+ assert ((!MRI->isReserved (PhysReg) || !IsValidAlloc ) &&
623
624
" Reserved register assignment" );
624
625
625
626
// Preserve semantics of sub-register operands.
You can’t perform that action at this time.
0 commit comments