aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-11 18:58:46 +0000
committerMike Stump <mrs@apple.com>2009-02-11 18:58:46 +0000
commit5fa77e9662e0cade8b4f491588c14c70c48e0987 (patch)
tree99f77dd45846b0d52ffc4ffe430916c1eda5f4a5 /lib/Sema/SemaTemplate.cpp
parent8e6563ba097732dc1fffcfc85f8dbbceac899a80 (diff)
Avoid bogus warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index 5fe592d5e3..429dc8e1e3 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -516,7 +516,8 @@ bool Sema::CheckTemplateParameterList(TemplateParameterList *NewParams,
bool SawDefaultArgument = false;
SourceLocation PreviousDefaultArgLoc;
- TemplateParameterList::iterator OldParam;
+ // Self initialization to avoid warnings.
+ TemplateParameterList::iterator OldParam = OldParam;
if (OldParams)
OldParam = OldParams->begin();