mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Allow indirection for swizzling on procedure parameters
This commit is contained in:
@@ -5509,6 +5509,11 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
|
|||||||
case Addressing_SwizzleVariable:
|
case Addressing_SwizzleVariable:
|
||||||
operand->mode = Addressing_SwizzleVariable;
|
operand->mode = Addressing_SwizzleVariable;
|
||||||
break;
|
break;
|
||||||
|
case Addressing_Value:
|
||||||
|
if (is_type_pointer(original_type)) {
|
||||||
|
operand->mode = Addressing_SwizzleVariable;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_type->kind == Type_SimdVector) {
|
if (array_type->kind == Type_SimdVector) {
|
||||||
|
|||||||
Reference in New Issue
Block a user