aboutsummaryrefslogtreecommitdiff
path: root/src/Air/types_resolved.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-14 17:32:51 -0700
committerGitHub <noreply@github.com>2024-07-14 17:32:51 -0700
commitd404d8a3637bc30dffc736e5fa1a68b8af0e19cb (patch)
tree2f668bf2a185fe788fa20753ae6d8462778c4204 /src/Air/types_resolved.zig
parent464537db62e1d4ca6bc1357135b0f6c451e48c17 (diff)
parentad55fb7a209e1b9d41b8d4f1d3e48211ff20d2f9 (diff)
downloadzig-d404d8a3637bc30dffc736e5fa1a68b8af0e19cb.tar.gz
zig-d404d8a3637bc30dffc736e5fa1a68b8af0e19cb.zip
Merge pull request #20593 from jacobly0/more-races
InternPool: fix more races
Diffstat (limited to 'src/Air/types_resolved.zig')
-rw-r--r--src/Air/types_resolved.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Air/types_resolved.zig b/src/Air/types_resolved.zig
index 073f2d68d4..77c8344a86 100644
--- a/src/Air/types_resolved.zig
+++ b/src/Air/types_resolved.zig
@@ -501,8 +501,8 @@ fn checkType(ty: Type, zcu: *Zcu) bool {
.struct_type => {
const struct_obj = zcu.typeToStruct(ty).?;
return switch (struct_obj.layout) {
- .@"packed" => struct_obj.backingIntType(ip).* != .none,
- .auto, .@"extern" => struct_obj.flagsPtr(ip).fully_resolved,
+ .@"packed" => struct_obj.backingIntTypeUnordered(ip) != .none,
+ .auto, .@"extern" => struct_obj.flagsUnordered(ip).fully_resolved,
};
},
.anon_struct_type => |tuple| {
@@ -516,6 +516,6 @@ fn checkType(ty: Type, zcu: *Zcu) bool {
},
else => unreachable,
},
- .Union => return zcu.typeToUnion(ty).?.flagsPtr(ip).status == .fully_resolved,
+ .Union => return zcu.typeToUnion(ty).?.flagsUnordered(ip).status == .fully_resolved,
};
}