diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index b701299e73664339a0c60657d7b112f78fd6cd7d..ab0deb9f63a5cad1fa0ae5df34ef5b95fd136d97 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -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 }; }