Skip to content

Commit c56007d

Browse files
committed
Addressed requested changes after review in StackSlotColoring.cpp.
1 parent c8079d7 commit c56007d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/CodeGen/StackSlotColoring.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,10 @@ bool StackSlotColoring::RemoveDeadStores(MachineBasicBlock* MBB) {
507507
}
508508

509509
for (MachineInstr *MI : toErase) {
510+
if (Indexes) {
511+
Indexes->removeMachineInstrFromMaps(*MI);
512+
}
510513
MI->eraseFromParent();
511-
Indexes->removeMachineInstrFromMaps(*MI);
512514
}
513515

514516
return changed;

0 commit comments

Comments
 (0)