[cfe-commits] r123484 - /cfe/trunk/lib/Sema/SemaTemplate.cpp

Ted Kremenek kremenek at apple.com
Fri Jan 14 14:31:39 PST 2011


Author: kremenek
Date: Fri Jan 14 16:31:38 2011
New Revision: 123484

URL: http://llvm.org/viewvc/llvm-project?rev=123484&view=rev
Log:
The variable 'ReusedDecl' is written but never read.
Remove this variable (found by clang static analyzer).

Modified:
    cfe/trunk/lib/Sema/SemaTemplate.cpp

Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=123484&r1=123483&r2=123484&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Fri Jan 14 16:31:38 2011
@@ -5274,7 +5274,6 @@
   
   ClassTemplateSpecializationDecl *Specialization = 0;
 
-  bool ReusedDecl = false;
   bool HasNoEffect = false;
   if (PrevDecl) {
     if (CheckSpecializationInstantiationRedecl(TemplateNameLoc, TSK,
@@ -5296,7 +5295,6 @@
       Specialization = PrevDecl;
       Specialization->setLocation(TemplateNameLoc);
       PrevDecl = 0;
-      ReusedDecl = true;
     }
   }
 





More information about the cfe-commits mailing list