mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
wasm: fix lowerDeclRefValue using wrong Decl
This commit is contained in:
parent
f3b3d7f20a
commit
535d5624e4
@ -1929,7 +1929,7 @@ fn lowerParentPtrDecl(self: *Self, ptr_val: Value, decl: *Module.Decl) InnerErro
|
||||
|
||||
fn lowerDeclRefValue(self: *Self, tv: TypedValue, decl: *Module.Decl) InnerError!WValue {
|
||||
if (tv.ty.isSlice()) {
|
||||
return WValue{ .memory = try self.bin_file.lowerUnnamedConst(self.decl, tv) };
|
||||
return WValue{ .memory = try self.bin_file.lowerUnnamedConst(decl, tv) };
|
||||
} else if (decl.ty.zigTypeTag() != .Fn and !decl.ty.hasRuntimeBitsIgnoreComptime()) {
|
||||
return WValue{ .imm32 = 0xaaaaaaaa };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user