| ... | ... | @@ -2436,6 +2436,7 @@ fn updateZirRefs(gpa: *Allocator, file: *Scope.File, old_zir: Zir) !UpdateChange |
| 2436 | 2436 | // Anonymous decls and the root decl have this set to 0. We still need |
| 2437 | 2437 | // to walk them but we do not need to modify this value. |
| 2438 | 2438 | if (decl.zir_decl_index != 0) { |
| 2439 | const old_hash = decl.contentsHashZir(old_zir); |
| 2439 | 2440 | decl.zir_decl_index = extra_map.get(decl.zir_decl_index) orelse { |
| 2440 | 2441 | try deleted_decls.append(gpa, decl); |
| 2441 | 2442 | continue; |
| ... | ... | @@ -2446,7 +2447,6 @@ fn updateZirRefs(gpa: *Allocator, file: *Scope.File, old_zir: Zir) !UpdateChange |
| 2446 | 2447 | }; |
| 2447 | 2448 | decl.name = new_zir.nullTerminatedString(new_name_index).ptr; |
| 2448 | 2449 | |
| 2449 | | const old_hash = decl.contentsHashZir(old_zir); |
| 2450 | 2450 | const new_hash = decl.contentsHashZir(new_zir); |
| 2451 | 2451 | if (!std.zig.srcHashEql(old_hash, new_hash)) { |
| 2452 | 2452 | try outdated_decls.append(gpa, decl); |