aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/AST/ExprConstant.cpp2
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngineC.cpp2
2 files changed, 0 insertions, 4 deletions
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<PointerType>()->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);