File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -4895,12 +4895,9 @@ Expr* SemanticsExprVisitor::visitMemberExpr(MemberExpr* expr)
4895
4895
if (auto modifiedType = as<ModifiedType>(baseType))
4896
4896
baseType = modifiedType->getBase ();
4897
4897
4898
- // Note: Checking for vector types before declaration-reference types,
4899
- // because vectors are also declaration reference types...
4900
- //
4901
- // Also note: the way this is done right now means that the ability
4902
- // to swizzle vectors interferes with any chance of looking up
4903
- // members via extension, for vector or scalar types.
4898
+ // Try handle swizzle-able types (scalar,vector,matrix) first.
4899
+ // If checking as a swizzle failed for these types,
4900
+ // we will fallback to normal member lookup.
4904
4901
//
4905
4902
if (auto baseScalarType = as<BasicExpressionType>(baseType))
4906
4903
{
You can’t perform that action at this time.
0 commit comments