]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288444 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclTemplate.cpp

index 7b5394f4598c462431a974ffa42a6015a9140d0e..8e3b783a53a71532224de4e552f8452ba9aed079 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;