aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCXXScopeSpec.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2009-08-10 23:49:36 +0000
committerNate Begeman <natebegeman@mac.com>2009-08-10 23:49:36 +0000
commit2ef13e5abef0570a9f567b4671367275c05d4d34 (patch)
tree97d379ec78c017e34f14647a35d14e4dceff209e /lib/Sema/SemaCXXScopeSpec.cpp
parentbd0fb30fa2a039439d1a30a83ea896801394d780 (diff)
Take 2 on AltiVec-style vector initializers.
Fixes PR4704 problems Addresses Eli's patch feedback re: ugly cast code Updates all postfix operators to remove ParenListExprs. While this is awful, no better solution (say, in the parser) is obvious to me. Better solutions welcome. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXScopeSpec.cpp')
-rw-r--r--lib/Sema/SemaCXXScopeSpec.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaCXXScopeSpec.cpp b/lib/Sema/SemaCXXScopeSpec.cpp
index e1cba36c82..977aa0f829 100644
--- a/lib/Sema/SemaCXXScopeSpec.cpp
+++ b/lib/Sema/SemaCXXScopeSpec.cpp
@@ -341,6 +341,9 @@ Sema::CXXScopeTy *Sema::ActOnCXXNestedNameSpecifier(Scope *S,
Action::OwningExprResult
Sema::ActOnCXXEnterMemberScope(Scope *S, CXXScopeSpec &SS, ExprArg Base,
tok::TokenKind OpKind) {
+ // Since this might be a postfix expression, get rid of ParenListExprs.
+ Base = MaybeConvertParenListExprToParenExpr(S, move(Base));
+
Expr *BaseExpr = (Expr*)Base.get();
assert(BaseExpr && "no record expansion");