| ... | ... | @@ -934,8 +934,9 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { |
| 934 | 934 | // If it's in the registers table, need to associate the register with the |
| 935 | 935 | // new instruction. |
| 936 | 936 | const branch = &self.branch_stack.items[self.branch_stack.items.len - 1]; |
| 937 | | const entry = branch.registers.getEntry(toCanonicalReg(reg)).?; |
| 938 | | entry.value = .{ .inst = inst }; |
| 937 | if (branch.registers.getEntry(toCanonicalReg(reg))) |entry| { |
| 938 | entry.value = .{ .inst = inst }; |
| 939 | } |
| 939 | 940 | log.debug("reusing {} => {*}", .{reg, inst}); |
| 940 | 941 | }, |
| 941 | 942 | .stack_offset => |off| { |