Allow indirection for swizzling on procedure parameters

This commit is contained in:
gingerBill
2025-02-21 12:38:40 +00:00
parent 55e0f945a1
commit 748a771dad

View File

@@ -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) {