diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-23 19:51:43 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-23 19:51:43 +0000 |
commit | a79f8b3989558884d9dbbbdbd4da861117345865 (patch) | |
tree | 8f349ad2b1d7bb40bbcc00e6a25702d1c5a230d1 /lib/Parse/ParseExpr.cpp | |
parent | c6e11fff7623e07681a29c103fcf0bb5c5b39140 (diff) |
Fix a recent regression probably caused by addition of altivec-style
type-casts in the parser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index bb6dfcebb5..5eb19d07cd 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -1365,7 +1365,8 @@ Parser::ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr, // Parse the cast-expression that follows it next. // TODO: For cast expression with CastTy. - Result = ParseCastExpression(false, false, true); + Result = ParseCastExpression(false, false, + Actions.TypeIsVectorType(CastTy)); if (!Result.isInvalid()) Result = Actions.ActOnCastExpr(CurScope, OpenLoc, CastTy, RParenLoc, move(Result)); |