From 748a771dad72c912b48ad2601e459078c7fd1db7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 21 Feb 2025 12:38:40 +0000 Subject: [PATCH] Allow indirection for swizzling on procedure parameters --- src/check_expr.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index f0021e67ff4..bd1c34044f9 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -5509,6 +5509,11 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod case Addressing_SwizzleVariable: operand->mode = Addressing_SwizzleVariable; break; + case Addressing_Value: + if (is_type_pointer(original_type)) { + operand->mode = Addressing_SwizzleVariable; + } + break; } if (array_type->kind == Type_SimdVector) {