codegen: fix union padding
This regressed during the internpool merges. This commit reinstates the padding logic for unions.
This commit is contained in:
@@ -598,6 +598,10 @@ pub fn generateSymbol(
|
||||
.fail => |em| return Result{ .fail = em },
|
||||
}
|
||||
}
|
||||
|
||||
if (layout.padding > 0) {
|
||||
try code.writer().writeByteNTimes(0, layout.padding);
|
||||
}
|
||||
},
|
||||
.memoized_call => unreachable,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user