diff options
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |