]> granicus.if.org Git - clang/commitdiff
The variable 'ReusedDecl' is written but never read.
authorTed Kremenek <kremenek@apple.com>
Fri, 14 Jan 2011 22:31:38 +0000 (22:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 14 Jan 2011 22:31:38 +0000 (22:31 +0000)
Remove this variable (found by clang static analyzer).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123484 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplate.cpp

index 03cb25e9032b0bcb49519fa70d9c87ba6e999c4e..5101b3b525865e98a4a745dd8f1c37715457533a 100644 (file)
@@ -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;
     }
   }