Remove the instruction under the cursor. The cursor is left pointing at the position following the current instruction. Return the instruction that was removed.
(&mut self)
| 547 | /// |
| 548 | /// Return the instruction that was removed. |
| 549 | fn remove_inst(&mut self) -> ir::Inst { |
| 550 | let inst = self.current_inst().expect("No instruction to remove"); |
| 551 | self.next_inst(); |
| 552 | self.layout_mut().remove_inst(inst); |
| 553 | inst |
| 554 | } |
| 555 | |
| 556 | /// Remove the instruction under the cursor. |
| 557 | /// |
no test coverage detected