aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaTemplate.cpp2
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();