diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-05 15:03:47 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-05 15:03:47 +0000 |
| commit | 71f3e19df07e179f41e891abbd8c100df486aace (patch) | |
| tree | f3039524d15a3bad270b6330861ef262298a8e79 /clang/lib/Parse/ParseExprCXX.cpp | |
| parent | 7b87f2743880efa3ab5887f403b3f391140841a6 (diff) | |
| download | bcm5719-llvm-71f3e19df07e179f41e891abbd8c100df486aace.tar.gz bcm5719-llvm-71f3e19df07e179f41e891abbd8c100df486aace.zip | |
Disambiguate between a declaration or expression for the 'condition' part of a if/switch/while/for statement.
llvm-svn: 57109
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 28071b6e29d..8b4db309508 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -162,7 +162,7 @@ Parser::ExprResult Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) { /// '=' assignment-expression /// Parser::ExprResult Parser::ParseCXXCondition() { - if (!isDeclarationSpecifier()) + if (!isCXXConditionDeclaration()) return ParseExpression(); // expression SourceLocation StartLoc = Tok.getLocation(); |

