From 911f4527f0ad166d84d77887602a784b1e801421 Mon Sep 17 00:00:00 2001 From: Pavel Verigo Date: Mon, 3 Mar 2025 23:21:15 +0100 Subject: [PATCH] stage2-wasm: behavior tests pass with ReleaseFast/Small --- src/arch/wasm/CodeGen.zig | 3 +++ 1 file changed, 3 insertions(+) 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);