diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-07-16 19:35:57 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-07-16 19:46:10 +0100 |
| commit | 21cde7ad90a033b775fdf0a5c3477fa289c51ef5 (patch) | |
| tree | f232ac7a0f4043575053cb966463602828812f19 /src | |
| parent | d8f81372f148ad2ee5aab12cc7ea55562764b3e7 (diff) | |
| download | zig-21cde7ad90a033b775fdf0a5c3477fa289c51ef5.tar.gz zig-21cde7ad90a033b775fdf0a5c3477fa289c51ef5.zip | |
Zcu: updateZirRefs typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/Zcu/PerThread.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 4c43640843..f8922a37d7 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -443,16 +443,16 @@ pub fn updateZirRefs(pt: Zcu.PerThread) Allocator.Error!void { { var it = new_zir.declIterator(tracked_inst.inst); while (it.next()) |decl_inst| { - const decl_name = old_zir.getDeclaration(decl_inst)[0].name; + const decl_name = new_zir.getDeclaration(decl_inst)[0].name; switch (decl_name) { .@"comptime", .@"usingnamespace", .unnamed_test, .decltest => continue, - _ => if (decl_name.isNamedTest(old_zir)) continue, + _ => if (decl_name.isNamedTest(new_zir)) continue, } - const name_zir = decl_name.toString(old_zir).?; + const name_zir = decl_name.toString(new_zir).?; const name_ip = try zcu.intern_pool.getOrPutString( zcu.gpa, pt.tid, - old_zir.nullTerminatedString(name_zir), + new_zir.nullTerminatedString(name_zir), .no_embedded_nulls, ); if (!old_names.swapRemove(name_ip)) continue; |
