]> granicus.if.org Git - clang/commitdiff
Remove unused variables.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Nov 2011 15:05:51 +0000 (15:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Nov 2011 15:05:51 +0000 (15:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143696 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp
lib/StaticAnalyzer/Core/ExprEngineC.cpp

index afd4e0e2e022ec0c63f32b0a0273b45f5d469542..3011b7f25fad51bb4ddc48006185968a944271e9 100644 (file)
@@ -1286,8 +1286,6 @@ bool PointerExprEvaluator::VisitCastExpr(const CastExpr* E) {
 
     // 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();
index 8ba371452d74a4b2c1bb5125dd7ac27eb2afa077..86570cb5d759ee8599ec36f7d1d9081c0085c6c4 100644 (file)
@@ -540,11 +540,9 @@ void ExprEngine::VisitUnaryOperator(const UnaryOperator* U,
                                     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);