[qfcc] Fix matrix indexing for ruamoko

The change to exclude matrices from is_nonscalar broke indexing of the
columns.
This commit is contained in:
Bill Currie 2024-12-05 14:24:14 +09:00
parent 639818cca5
commit a5366bf7f9

View file

@ -2430,7 +2430,7 @@ array_expr (const expr_t *array, const expr_t *index)
auto alias = new_offset_alias_expr (ele_type, array, 0); auto alias = new_offset_alias_expr (ele_type, array, 0);
ptr = new_address_expr (ele_type, alias, 0); ptr = new_address_expr (ele_type, alias, 0);
} }
} else if (is_nonscalar (array_type)) { } else if (is_nonscalar (array_type) || is_matrix (array_type)) {
auto alias = new_offset_alias_expr (ele_type, array, 0); auto alias = new_offset_alias_expr (ele_type, array, 0);
ptr = new_address_expr (ele_type, alias, 0); ptr = new_address_expr (ele_type, alias, 0);
} else { } else {