Commit 805bc4f
committed
[PrologEpilog] Fix RegScavenger crash when frame pseudo is last instruction
llvm#174251
The crash occurs when a basic block's last instruction is a call frame
pseudo instruction. The RegScavenger::MBBI iterator becomes invalid
after eliminateCallFramePseudoInstr erases the instruction1 parent 5d986dc commit 805bc4f
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1471 | 1477 | | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1472 | 1481 | | |
1473 | 1482 | | |
1474 | 1483 | | |
1475 | 1484 | | |
1476 | | - | |
1477 | | - | |
1478 | | - | |
| 1485 | + | |
1479 | 1486 | | |
1480 | 1487 | | |
1481 | 1488 | | |
| |||
0 commit comments