From: Benjamin Kramer Date: Fri, 4 Nov 2011 15:05:51 +0000 (+0000) Subject: Remove unused variables. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92d3dda09f72b700e15b7b652a7bb47718989994;p=clang Remove unused variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143696 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index afd4e0e2e0..3011b7f25f 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -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()->getPointeeType()->getAsCXXRecordDecl(); diff --git a/lib/StaticAnalyzer/Core/ExprEngineC.cpp b/lib/StaticAnalyzer/Core/ExprEngineC.cpp index 8ba371452d..86570cb5d7 100644 --- a/lib/StaticAnalyzer/Core/ExprEngineC.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngineC.cpp @@ -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);