From a68c635c0001f4556d468ae6773bd61703c8f560 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 20 May 2024 15:00:43 +0100 Subject: [PATCH] Remove constant indexing for `matrix` value propagation --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index c9cfb58be..32c55228b 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -10157,7 +10157,7 @@ gb_internal ExprKind check_index_expr(CheckerContext *c, Operand *o, Ast *node, o->mode = Addressing_Invalid; o->expr = node; return kind; - } else if (ok) { + } else if (ok && !is_type_matrix(t)) { ExactValue value = type_and_value_of_expr(ie->expr).value; o->mode = Addressing_Constant; bool success = false;