]> granicus.if.org Git - clang/commitdiff
Remove duplicate word & unnecessary conditional.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 7 Nov 2011 03:30:03 +0000 (03:30 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 7 Nov 2011 03:30:03 +0000 (03:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143907 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseExprCXX.cpp

index fe4bfc853eff85469db03f0a46bb36c7973399c6..2bfb6158739fee9806d1ae06c01c4cb68403610f 100644 (file)
@@ -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