| ... | ... | @@ -444,16 +444,16 @@ pub fn updateZirRefs(pt: Zcu.PerThread) Allocator.Error!void { |
| 444 | 444 | { |
| 445 | 445 | var it = new_zir.declIterator(tracked_inst.inst); |
| 446 | 446 | while (it.next()) |decl_inst| { |
| 447 | | const decl_name = old_zir.getDeclaration(decl_inst)[0].name; |
| 447 | const decl_name = new_zir.getDeclaration(decl_inst)[0].name; |
| 448 | 448 | switch (decl_name) { |
| 449 | 449 | .@"comptime", .@"usingnamespace", .unnamed_test, .decltest => continue, |
| 450 | | _ => if (decl_name.isNamedTest(old_zir)) continue, |
| 450 | _ => if (decl_name.isNamedTest(new_zir)) continue, |
| 451 | 451 | } |
| 452 | | const name_zir = decl_name.toString(old_zir).?; |
| 452 | const name_zir = decl_name.toString(new_zir).?; |
| 453 | 453 | const name_ip = try zcu.intern_pool.getOrPutString( |
| 454 | 454 | zcu.gpa, |
| 455 | 455 | pt.tid, |
| 456 | | old_zir.nullTerminatedString(name_zir), |
| 456 | new_zir.nullTerminatedString(name_zir), |
| 457 | 457 | .no_embedded_nulls, |
| 458 | 458 | ); |
| 459 | 459 | if (!old_names.swapRemove(name_ip)) continue; |