From 1057307a75e6d3585b920f362e3347acb138332b Mon Sep 17 00:00:00 2001
From: Jonathan Roelofs <jonathan@codesourcery.com>
Date: Fri, 2 Dec 2016 00:51:58 +0000
Subject: [PATCH] Delete tautological assertion.

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 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp
index 7b5394f4598..8e3b783a53a 100644
--- a/lib/AST/DeclTemplate.cpp
+++ b/lib/AST/DeclTemplate.cpp
@@ -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;
-- 
GitLab