From a5366bf7f9d88936ed87cd373553e930ded86889 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Dec 2024 14:24:14 +0900 Subject: [PATCH] [qfcc] Fix matrix indexing for ruamoko The change to exclude matrices from is_nonscalar broke indexing of the columns. --- tools/qfcc/source/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index b8df2466f..de9a665fa 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -2430,7 +2430,7 @@ array_expr (const expr_t *array, const expr_t *index) auto alias = new_offset_alias_expr (ele_type, array, 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); ptr = new_address_expr (ele_type, alias, 0); } else {