Commit 51cbb081e9

Jacob Young <jacobly0@users.noreply.github.com>
2023-06-20 04:27:41
wasm: fix decl alignment
1 parent a72d634
Changed files (1)
src
src/link/Wasm.zig
@@ -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`.