Remove the instruction under the cursor. The cursor is left pointing at the position preceding the current instruction. Return the instruction that was removed.
(&mut self)
| 559 | /// |
| 560 | /// Return the instruction that was removed. |
| 561 | fn remove_inst_and_step_back(&mut self) -> ir::Inst { |
| 562 | let inst = self.current_inst().expect("No instruction to remove"); |
| 563 | self.prev_inst(); |
| 564 | self.layout_mut().remove_inst(inst); |
| 565 | inst |
| 566 | } |
| 567 | |
| 568 | /// Replace the instruction under the cursor with `new_inst`. |
| 569 | /// |
no test coverage detected