mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
wasm: fix decl alignment
This commit is contained in:
parent
a72d634b73
commit
51cbb081e9
@ -1487,7 +1487,7 @@ fn finishUpdateDecl(wasm: *Wasm, decl_index: Module.Decl.Index, code: []const u8
|
||||
|
||||
atom.size = @intCast(u32, code.len);
|
||||
if (code.len == 0) return;
|
||||
atom.alignment = decl.ty.abiAlignment(mod);
|
||||
atom.alignment = decl.getAlignment(mod);
|
||||
}
|
||||
|
||||
/// From a given symbol location, returns its `wasm.GlobalType`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user