code simplification

llvm-svn: 61654
This commit is contained in:
Chris Lattner 2009-01-04 23:46:59 +00:00
parent 623806eb2b
commit 1f69ebb5fa
1 changed files with 2 additions and 5 deletions

View File

@ -479,11 +479,8 @@ Parser::OwningExprResult Parser::ParseCastExpression(bool isUnaryExpression) {
// Turn a potentially qualified name into a annot_qualtypename or
// annot_cxxscope if it would be valid. This handles things like x::y, etc.
if (getLang().CPlusPlus) {
TryAnnotateTypeOrScopeToken();
// If TryAnnotateTypeOrScopeToken modified the current token, then tail
// recurse.
if (Tok.getKind() != tok::identifier)
// If TryAnnotateTypeOrScopeToken annotates the token, tail recurse.
if (TryAnnotateTypeOrScopeToken())
return ParseCastExpression(isUnaryExpression);
}