summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-14 22:31:38 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-14 22:31:38 +0000
commitbea8b40a86b5fb23deb20c5dc357e604eff3efbf (patch)
tree83ca00263ab142bd4f07226b4dc7ee43bbe08feb
parent7f1f3f6e323af8e415c5b671917c0e2ff7da0297 (diff)
downloadbcm5719-llvm-bea8b40a86b5fb23deb20c5dc357e604eff3efbf.tar.gz
bcm5719-llvm-bea8b40a86b5fb23deb20c5dc357e604eff3efbf.zip
The variable 'ReusedDecl' is written but never read.
Remove this variable (found by clang static analyzer). llvm-svn: 123484
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 03cb25e9032..5101b3b5258 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -5274,7 +5274,6 @@ Sema::ActOnExplicitInstantiation(Scope *S,
ClassTemplateSpecializationDecl *Specialization = 0;
- bool ReusedDecl = false;
bool HasNoEffect = false;
if (PrevDecl) {
if (CheckSpecializationInstantiationRedecl(TemplateNameLoc, TSK,
@@ -5296,7 +5295,6 @@ Sema::ActOnExplicitInstantiation(Scope *S,
Specialization = PrevDecl;
Specialization->setLocation(TemplateNameLoc);
PrevDecl = 0;
- ReusedDecl = true;
}
}
OpenPOWER on IntegriCloud