Fix more #soa changes

This commit is contained in:
gingerBill
2024-05-16 17:15:38 +01:00
parent 7cf62f00c3
commit 575b268e88
3 changed files with 15 additions and 0 deletions

View File

@@ -4993,6 +4993,9 @@ gb_internal lbAddr lb_build_addr_internal(lbProcedure *p, Ast *expr) {
if (sub_sel.index.count > 0) {
item = lb_emit_deep_field_gep(p, item, sub_sel);
}
// make sure it's ^T and not [^]T
item.type = alloc_type_multi_pointer_to_pointer(item.type);
return lb_addr(item);
} else if (addr.kind == lbAddr_Swizzle) {
GB_ASSERT(sel.index.count > 0);