summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-11-23 19:51:43 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-11-23 19:51:43 +0000
commit3f21c159dc274006423602745a3ed8c9db24c6d0 (patch)
tree40cb66276f894a233b66c3fbe0a5120cdda5b113 /clang/lib/Parse/ParseExpr.cpp
parent75e6a40d6d18c9694ace40b97b41102c78d966fd (diff)
downloadbcm5719-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.cpp3
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));
OpenPOWER on IntegriCloud