diff options
| author | Pavel Verigo <paul.verigo@gmail.com> | 2025-03-03 23:21:15 +0100 |
|---|---|---|
| committer | Pavel Verigo <paul.verigo@gmail.com> | 2025-03-24 15:00:00 +0100 |
| commit | 911f4527f0ad166d84d77887602a784b1e801421 (patch) | |
| tree | 6a5cd1daf95cf299f1f65fc13dec9c8dd2553518 /src | |
| parent | 47cd0961cb938248a2bc65d2a9d49ba1d37b0764 (diff) | |
| download | zig-911f4527f0ad166d84d77887602a784b1e801421.tar.gz zig-911f4527f0ad166d84d77887602a784b1e801421.zip | |
stage2-wasm: behavior tests pass with ReleaseFast/Small
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index ac8e0a68e4..7b056a95cc 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -2362,6 +2362,9 @@ fn store(cg: *CodeGen, lhs: WValue, rhs: WValue, ty: Type, offset: u32) InnerErr const pt = cg.pt; const zcu = pt.zcu; const abi_size = ty.abiSize(zcu); + + if (!ty.hasRuntimeBitsIgnoreComptime(zcu)) return; + switch (ty.zigTypeTag(zcu)) { .error_union => { const pl_ty = ty.errorUnionPayload(zcu); |
