aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu/PerThread.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-05-30 12:56:52 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2025-05-31 18:54:28 -0400
commit77e6513030a6258a893c2f11ad9708c9612b7715 (patch)
treed6821410ab84c13ba0a440bc499422d430b03f7a /src/Zcu/PerThread.zig
parent6198f7afb76b7a5a6d359bfd24f8fbdabc77939b (diff)
downloadzig-77e6513030a6258a893c2f11ad9708c9612b7715.tar.gz
zig-77e6513030a6258a893c2f11ad9708c9612b7715.zip
cbe: implement `stdbool.h` reserved identifiers
Also remove the legalize pass from zig1.
Diffstat (limited to 'src/Zcu/PerThread.zig')
-rw-r--r--src/Zcu/PerThread.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig
index 93f87b506b..a67d4dcc05 100644
--- a/src/Zcu/PerThread.zig
+++ b/src/Zcu/PerThread.zig
@@ -1741,7 +1741,9 @@ pub fn linkerUpdateFunc(pt: Zcu.PerThread, func_index: InternPool.Index, air: *A
return;
}
- try air.legalize(pt, @import("../codegen.zig").legalizeFeatures(pt, nav_index));
+ legalize: {
+ try air.legalize(pt, @import("../codegen.zig").legalizeFeatures(pt, nav_index) orelse break :legalize);
+ }
var liveness = try Air.Liveness.analyze(gpa, air.*, ip);
defer liveness.deinit(gpa);