Fix reverting this in try-catch

This commit is contained in:
Andrew Morris
2023-07-21 16:52:40 +10:00
parent 0927e1d312
commit 7ce3e4b2bb
2 changed files with 1 additions and 6 deletions

View File

@@ -849,10 +849,6 @@ impl FunctionCompiler {
let snap_registers = self.get_mutated_registers(try_.block.span);
for reg in snap_registers {
if !reg.is_named() {
continue;
}
let snap_reg = self.allocate_reg_fresh(&format!("snap_{}", reg.name));
self.push(Instruction::Mov(