aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-16 21:11:58 +0000
committerChris Lattner <sabre@nondot.org>2009-02-16 21:11:58 +0000
commit73525de7fd9bdd534382dc89a24f1f76db3e04b9 (patch)
treed7f67878553325ca2d681aaa3ed412c98bce6c9f /lib/Sema/SemaExpr.cpp
parent450da9832b31d9b2e90af7708d197e5b9e1af8c8 (diff)
enhance ExtVectorElementExpr to allow V->xxyy to work like (*V).xxyy
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 9a44a087c7..ad4f297388 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -1815,7 +1815,7 @@ Sema::ActOnMemberReferenceExpr(Scope *S, ExprArg Base, SourceLocation OpLoc,
<< &Member << BaseType);
}
// Handle 'field access' to vectors, such as 'V.xx'.
- if (BaseType->isExtVectorType() && OpKind == tok::period) {
+ if (BaseType->isExtVectorType()) {
QualType ret = CheckExtVectorComponent(BaseType, OpLoc, Member, MemberLoc);
if (ret.isNull())
return ExprError();