aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-02-13 17:09:21 -0500
committerJacob Young <jacobly0@users.noreply.github.com>2025-02-15 03:45:21 -0500
commit8159ff8b811a1621674b0f00a01b5a92698af8f9 (patch)
tree273c5d568004ec6d40e0d35919ddf81533e54dcd /src/target.zig
parent5ab5113077bf82237978168b32e2b549a4a71feb (diff)
downloadzig-8159ff8b811a1621674b0f00a01b5a92698af8f9.tar.gz
zig-8159ff8b811a1621674b0f00a01b5a92698af8f9.zip
x86_64: implement error set and enum safety
This is all of the expected 0.14.0 progress on #21530, which can now be postponed once this commit is merged. This required rewriting the (un)wrap operations since the original implementations were extremely buggy. Also adds an easy way to retrigger Sema OPV bugs so that I don't have to keep updating #22419 all the time.
Diffstat (limited to 'src/target.zig')
-rw-r--r--src/target.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target.zig b/src/target.zig
index 2496c4b07f..3d7abb935d 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -726,11 +726,11 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt
else => false,
},
.is_named_enum_value => switch (backend) {
- .stage2_llvm => true,
+ .stage2_llvm, .stage2_x86_64 => true,
else => false,
},
.error_set_has_value => switch (backend) {
- .stage2_llvm, .stage2_wasm => true,
+ .stage2_llvm, .stage2_wasm, .stage2_x86_64 => true,
else => false,
},
.field_reordering => switch (backend) {