aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-29 08:21:47 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:56 -0700
commita702af062bb65673ba554dba330b4c5ca8d50f3e (patch)
tree042542e3bc6359b739e70af5b8bd3f2a3b9b0932 /src/Sema.zig
parent4f70863a55e699c13731325f8c52870119479c02 (diff)
downloadzig-a702af062bb65673ba554dba330b4c5ca8d50f3e.tar.gz
zig-a702af062bb65673ba554dba330b4c5ca8d50f3e.zip
x86_64: fix InternPool regressions
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index bd3cfad50d..81e2c6e2ae 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -24311,7 +24311,10 @@ fn fieldVal(
.inferred_error_set_type => {
return sema.fail(block, src, "TODO handle inferred error sets here", .{});
},
- .simple_type => |t| assert(t == .anyerror),
+ .simple_type => |t| {
+ assert(t == .anyerror);
+ _ = try mod.getErrorValue(field_name);
+ },
else => unreachable,
}
@@ -24529,7 +24532,10 @@ fn fieldPtr(
.inferred_error_set_type => {
return sema.fail(block, src, "TODO handle inferred error sets here", .{});
},
- .simple_type => |t| assert(t == .anyerror),
+ .simple_type => |t| {
+ assert(t == .anyerror);
+ _ = try mod.getErrorValue(field_name);
+ },
else => unreachable,
}