Skip to content

Commit 911f452

Browse files
committed
stage2-wasm: behavior tests pass with ReleaseFast/Small
1 parent 47cd096 commit 911f452

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/arch/wasm/CodeGen.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,6 +2362,9 @@ fn store(cg: *CodeGen, lhs: WValue, rhs: WValue, ty: Type, offset: u32) InnerErr
23622362
const pt = cg.pt;
23632363
const zcu = pt.zcu;
23642364
const abi_size = ty.abiSize(zcu);
2365+
2366+
if (!ty.hasRuntimeBitsIgnoreComptime(zcu)) return;
2367+
23652368
switch (ty.zigTypeTag(zcu)) {
23662369
.error_union => {
23672370
const pl_ty = ty.errorUnionPayload(zcu);

0 commit comments

Comments
 (0)