wasm linker: track overaligned uavs

This commit is contained in:
Andrew Kelley
2025-01-13 19:37:18 -08:00
parent ba4521ac85
commit 4cc9cfa7e8
3 changed files with 38 additions and 8 deletions

View File

@@ -675,7 +675,7 @@ fn lowerUavRef(
} else {
try wasm.uav_fixups.ensureUnusedCapacity(gpa, 1);
wasm.uav_fixups.appendAssumeCapacity(.{
.uavs_exe_index = try wasm.refUavExe(uav.val),
.uavs_exe_index = try wasm.refUavExe(uav.val, uav.orig_ty),
.offset = @intCast(code.items.len),
.addend = @intCast(offset),
});