diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-16 21:11:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-16 21:11:58 +0000 |
commit | 6c7ce109e0460bf06b23eef8592cf284375b47f7 (patch) | |
tree | 98b5292c1319ebe32de9d13f35c0b2a54269dead /clang/lib/Sema/SemaExpr.cpp | |
parent | bfdd607372e900c3a05bcb3ce7a172179def8048 (diff) | |
download | bcm5719-llvm-6c7ce109e0460bf06b23eef8592cf284375b47f7.tar.gz bcm5719-llvm-6c7ce109e0460bf06b23eef8592cf284375b47f7.zip |
enhance ExtVectorElementExpr to allow V->xxyy to work like (*V).xxyy
llvm-svn: 64667
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 9a44a087c72..ad4f297388c 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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(); |