mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 17:35:12 +00:00
zld: fix bug in working out commons total size
This commit is contained in:
parent
e1f1f16183
commit
a8116dcc27
@ -720,8 +720,7 @@ fn updateMetadata(self: *Zld) !void {
|
||||
var added_size: u64 = 0;
|
||||
for (self.tentatives.values()) |sym| {
|
||||
const tent = sym.cast(Symbol.Tentative) orelse unreachable;
|
||||
if (max_align > tent.alignment) continue;
|
||||
max_align = tent.alignment;
|
||||
max_align = math.max(max_align, tent.alignment);
|
||||
added_size += tent.size;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user