[cfe-commits] r143696 - in /cfe/trunk/lib: AST/ExprConstant.cpp StaticAnalyzer/Core/ExprEngineC.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Nov 4 08:05:51 PDT 2011


Author: d0k
Date: Fri Nov  4 10:05:51 2011
New Revision: 143696

URL: http://llvm.org/viewvc/llvm-project?rev=143696&view=rev
Log:
Remove unused variables.

Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp
    cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=143696&r1=143695&r2=143696&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Fri Nov  4 10:05:51 2011
@@ -1286,8 +1286,6 @@
 
     // Now figure out the necessary offset to add to the baseLV to get from
     // the derived class to the base class.
-    CharUnits Offset = CharUnits::Zero();
-
     QualType Ty = E->getSubExpr()->getType();
     const CXXRecordDecl *DerivedDecl = 
       Ty->getAs<PointerType>()->getPointeeType()->getAsCXXRecordDecl();

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp?rev=143696&r1=143695&r2=143696&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp Fri Nov  4 10:05:51 2011
@@ -540,11 +540,9 @@
                                     ExplodedNode *Pred,
                                     ExplodedNodeSet &Dst) {
   StmtNodeBuilder Bldr(Pred, Dst, *currentBuilderContext);
-  bool IncDec = false;
   switch (U->getOpcode()) {
     default: {
       Bldr.takeNodes(Pred);
-      IncDec = true;
       ExplodedNodeSet Tmp;
       VisitIncrementDecrementOperator(U, Pred, Tmp);
       Bldr.addNodes(Tmp);





More information about the cfe-commits mailing list