diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-11-07 03:30:03 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-11-07 03:30:03 +0000 |
commit | 6796fc1adcaf57c38d072a238b016b2834afbe0d (patch) | |
tree | 406f960ee8921c12012b6e0b70303eb9af124e6a /lib/Parse/ParseExprCXX.cpp | |
parent | 921da24fff5e23d629740e0bc88c4ff02e955ca2 (diff) |
Remove duplicate word & unnecessary conditional.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | lib/Parse/ParseExprCXX.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 |