summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2011-11-07 03:30:03 +0000
committerDavid Blaikie <dblaikie@gmail.com>2011-11-07 03:30:03 +0000
commit8c045bcf9d124c355b9a1c98e6928eebb3cce225 (patch)
treeb2e4f65601f8c7694226f777624ac5c9e53ad4fc
parentb06c68d320b943c6c1eea1811b61faed5b873c2c (diff)
downloadbcm5719-llvm-8c045bcf9d124c355b9a1c98e6928eebb3cce225.tar.gz
bcm5719-llvm-8c045bcf9d124c355b9a1c98e6928eebb3cce225.zip
Remove duplicate word & unnecessary conditional.
llvm-svn: 143907
-rw-r--r--clang/lib/Parse/ParseExprCXX.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp
index fe4bfc853ef..2bfb6158739 100644
--- a/clang/lib/Parse/ParseExprCXX.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud