Delete tautological assertion.
authorJonathan Roelofs <jonathan@codesourcery.com>
Fri, 2 Dec 2016 00:51:58 +0000 (00:51 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Fri, 2 Dec 2016 00:51:58 +0000 (00:51 +0000)
After r256463, both the LHS and RHS now refer to the same variable. Before,
they referred to the member, the parameter respectively. Now GCC6's
-Wtautological-compare complains.

llvm-svn: 288444

clang/lib/AST/DeclTemplate.cpp

index 7b5394f..8e3b783 100644 (file)
@@ -36,7 +36,6 @@ TemplateParameterList::TemplateParameterList(SourceLocation TemplateLoc,
   : TemplateLoc(TemplateLoc), LAngleLoc(LAngleLoc), RAngleLoc(RAngleLoc),
     NumParams(Params.size()), ContainsUnexpandedParameterPack(false),
     HasRequiresClause(static_cast<bool>(RequiresClause)) {
-  assert(this->NumParams == NumParams && "Too many template parameters");
   for (unsigned Idx = 0; Idx < NumParams; ++Idx) {
     NamedDecl *P = Params[Idx];
     begin()[Idx] = P;