x86_64: fix std test failures

This commit is contained in:
Jacob Young
2023-11-03 23:18:21 -04:00
parent f6de3ec963
commit 509be7cf1f
45 changed files with 1412 additions and 841 deletions

View File

@@ -376,7 +376,10 @@ pub fn generateSymbol(
.val = switch (aggregate.storage) {
.bytes => unreachable,
.elems => |elems| elems[@as(usize, @intCast(index))],
.repeated_elem => |elem| elem,
.repeated_elem => |elem| if (index < array_type.len)
elem
else
array_type.sentinel,
}.toValue(),
}, code, debug_output, reloc_info)) {
.ok => {},