diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-05-30 14:38:46 -0400 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-06-01 08:24:00 +0100 |
| commit | d9b6d1ed33d18eb13fa2cb39da3e7a381742975b (patch) | |
| tree | afdfcb8ec66c779f9afc064f27befa3ce8036c63 /src/arch/wasm/CodeGen.zig | |
| parent | 4c4dacf81a5da85a1f7d1550ed45f5cb20fd1524 (diff) | |
| download | zig-d9b6d1ed33d18eb13fa2cb39da3e7a381742975b.tar.gz zig-d9b6d1ed33d18eb13fa2cb39da3e7a381742975b.zip | |
cbe: legalize safety instructions in non-zig1 builds
This is valid if the bootstrap dev env doesn't need to support runtime
safety. Another solution can always be implemented if needs change.
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index 0704557cbb..36908eb236 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -31,7 +31,7 @@ const libcFloatSuffix = target_util.libcFloatSuffix; const compilerRtFloatAbbrev = target_util.compilerRtFloatAbbrev; const compilerRtIntAbbrev = target_util.compilerRtIntAbbrev; -pub fn legalizeFeatures(_: *const std.Target) ?*const Air.Legalize.Features { +pub fn legalizeFeatures(_: *const std.Target) *const Air.Legalize.Features { return comptime &.initMany(&.{ .expand_intcast_safe, .expand_add_safe, |
