aboutsummaryrefslogtreecommitdiff
path: root/src/arch/wasm/CodeGen.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-06-07 00:22:36 +0200
committerGitHub <noreply@github.com>2022-06-07 00:22:36 +0200
commit920f1dcd2784bf00350843872620f5d64085e267 (patch)
tree7e231a1e2753d11d2d6aae9388488a130f3eab51 /src/arch/wasm/CodeGen.zig
parent367e2b2fe43a2de09767ad8d5657866088b44678 (diff)
parente05de31a5fa8105b09eed37c9d023501b1289cd1 (diff)
downloadzig-920f1dcd2784bf00350843872620f5d64085e267.tar.gz
zig-920f1dcd2784bf00350843872620f5d64085e267.zip
Merge pull request #11804 from ziglang/elf-dwarf-unions
dwarf: fix incorrect type relocations for union payloads
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
-rw-r--r--src/arch/wasm/CodeGen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig
index 944ef16294..00907a03c0 100644
--- a/src/arch/wasm/CodeGen.zig
+++ b/src/arch/wasm/CodeGen.zig
@@ -1050,7 +1050,7 @@ fn addDbgInfoTypeReloc(self: *Self, ty: Type) !void {
const index = dbg_info.items.len;
try dbg_info.resize(index + 4);
const atom = &self.decl.link.wasm.dbg_info_atom;
- try dwarf.addTypeReloc(atom, ty, @intCast(u32, index), null);
+ try dwarf.addTypeRelocGlobal(atom, ty, @intCast(u32, index));
},
.plan9 => unreachable,
.none => {},