From: David Blaikie Date: Mon, 7 Nov 2011 03:30:03 +0000 (+0000) Subject: Remove duplicate word & unnecessary conditional. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6796fc1adcaf57c38d072a238b016b2834afbe0d;p=clang Remove duplicate word & unnecessary conditional. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143907 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index fe4bfc853e..2bfb615873 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -283,8 +283,7 @@ bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS, assert(Tok.is(tok::coloncolon) && "NextToken() not working properly!"); SourceLocation CCLoc = ConsumeToken(); - if (!HasScopeSpecifier) - HasScopeSpecifier = true; + HasScopeSpecifier = true; ASTTemplateArgsPtr TemplateArgsPtr(Actions, TemplateId->getTemplateArgs(), @@ -381,7 +380,7 @@ bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS, EnteringContext, Template, MemberOfUnknownSpecialization)) { - // We have found a template name, so annotate this this token + // We have found a template name, so annotate this token // with a template-id annotation. We do not permit the // template-id to be translated into a type annotation, // because some clients (e.g., the parsing of class template