| ... | ... | @@ -2905,7 +2905,10 @@ fn deferStmt( |
| 2905 | 2905 | const sub_scope = if (!have_err_code) &defer_gen.base else blk: { |
| 2906 | 2906 | try gz.addDbgBlockBegin(); |
| 2907 | 2907 | const ident_name = try gz.astgen.identAsString(payload_token); |
| 2908 | | remapped_err_code = @intCast(u32, try gz.astgen.instructions.addOne(gz.astgen.gpa)); |
| 2908 | remapped_err_code = @intCast(Zir.Inst.Index, gz.astgen.instructions.len); |
| 2909 | // Use a placeholder tag of .as to allow querying things that depend on the tag, |
| 2910 | // but undefined data to prevent querying of data.bin. |
| 2911 | try gz.astgen.instructions.append(gz.astgen.gpa, .{ .tag = .as, .data = undefined }); |
| 2909 | 2912 | const remapped_err_code_ref = Zir.indexToRef(remapped_err_code); |
| 2910 | 2913 | local_val_scope = .{ |
| 2911 | 2914 | .parent = &defer_gen.base, |