aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-11 20:46:19 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-11 20:46:19 +0000
commit1bc6913e7af08bb400150ebb31a54cdfd8cde9f9 (patch)
tree152fea3b9a333e8c4a31c3b23874b8efa6cd23af /lib/Sema/SemaTemplate.cpp
parent84c431088693e216193094d1dbf327a01173f57f (diff)
Appease the language lawyers
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-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();