From: Jonathan Roelofs Date: Fri, 2 Dec 2016 00:51:58 +0000 (+0000) Subject: Delete tautological assertion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1057307a75e6d3585b920f362e3347acb138332b;p=clang 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 --- diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp index 7b5394f459..8e3b783a53 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(RequiresClause)) { - assert(this->NumParams == NumParams && "Too many template parameters"); for (unsigned Idx = 0; Idx < NumParams; ++Idx) { NamedDecl *P = Params[Idx]; begin()[Idx] = P;