From 599d18f26f25ca29e704190f25adcaa0bb9ed4f5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 5 Jun 2021 17:22:39 +0100 Subject: Experimental support for inline swizzling for array types of len <= 4 e.g. `v.xyz`, `v.argb`, `v.xxx` --- src/check_stmt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 7772b5c97..a4b7f9b24 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -370,6 +370,9 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs) case Addressing_SoaVariable: break; + case Addressing_SwizzleVariable: + break; + default: { if (lhs->expr->kind == Ast_SelectorExpr) { // NOTE(bill): Extra error checks -- cgit v1.2.3