mirror of
https://github.com/ziglang/zig.git
synced 2025-12-09 15:53:08 +00:00
stage2-wasm: behavior tests pass with ReleaseFast/Small
This commit is contained in:
parent
47cd0961cb
commit
911f4527f0
@ -2362,6 +2362,9 @@ fn store(cg: *CodeGen, lhs: WValue, rhs: WValue, ty: Type, offset: u32) InnerErr
|
|||||||
const pt = cg.pt;
|
const pt = cg.pt;
|
||||||
const zcu = pt.zcu;
|
const zcu = pt.zcu;
|
||||||
const abi_size = ty.abiSize(zcu);
|
const abi_size = ty.abiSize(zcu);
|
||||||
|
|
||||||
|
if (!ty.hasRuntimeBitsIgnoreComptime(zcu)) return;
|
||||||
|
|
||||||
switch (ty.zigTypeTag(zcu)) {
|
switch (ty.zigTypeTag(zcu)) {
|
||||||
.error_union => {
|
.error_union => {
|
||||||
const pl_ty = ty.errorUnionPayload(zcu);
|
const pl_ty = ty.errorUnionPayload(zcu);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user