Skip to content

Commit

Permalink
Allow indirection for swizzling on procedure parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Feb 21, 2025
1 parent 55e0f94 commit 748a771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/check_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 748a771

Please sign in to comment.