Commit 911f4527f0

Pavel Verigo <paul.verigo@gmail.com>
2025-03-03 23:21:15
stage2-wasm: behavior tests pass with ReleaseFast/Small
1 parent 47cd096
Changed files (1)
src
arch
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);