From: Douglas Gregor Date: Wed, 11 Feb 2009 20:46:19 +0000 (+0000) Subject: Appease the language lawyers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bc6913e7af08bb400150ebb31a54cdfd8cde9f9;p=clang Appease the language lawyers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64321 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 1c2484d972..1a0d96a92c 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -518,7 +518,7 @@ bool Sema::CheckTemplateParameterList(TemplateParameterList *NewParams, SourceLocation PreviousDefaultArgLoc; // Self initialization to avoid warnings. - TemplateParameterList::iterator OldParam = OldParam; + TemplateParameterList::iterator OldParam = NewParams->end(); if (OldParams) OldParam = OldParams->begin();