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 | 3f21c159dc274006423602745a3ed8c9db24c6d0 (patch) | |
| tree | 40cb66276f894a233b66c3fbe0a5120cdda5b113 /clang/lib/Parse/ParseExpr.cpp | |
| parent | 75e6a40d6d18c9694ace40b97b41102c78d966fd (diff) | |
| download | bcm5719-llvm-3f21c159dc274006423602745a3ed8c9db24c6d0.tar.gz bcm5719-llvm-3f21c159dc274006423602745a3ed8c9db24c6d0.zip | |
Fix a recent regression probably caused by addition of altivec-style
type-casts in the parser.
llvm-svn: 89691
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index bb6dfcebb57..5eb19d07cd6 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/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)); |

