mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-07 21:43:15 +00:00
Fix #2000 - allow #soa array iteration by pointer
This commit is contained in:
@@ -646,7 +646,7 @@ void lb_build_range_stmt_struct_soa(lbProcedure *p, AstRangeStmt *rs, Scope *sco
|
||||
|
||||
|
||||
lbAddr array = lb_build_addr(p, expr);
|
||||
if (is_type_pointer(type_deref(lb_addr_type(array)))) {
|
||||
if (is_type_pointer(lb_addr_type(array))) {
|
||||
array = lb_addr(lb_addr_load(p, array));
|
||||
}
|
||||
lbValue count = lb_soa_struct_len(p, lb_addr_load(p, array));
|
||||
|
||||
Reference in New Issue
Block a user