aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r--lib/AST/ExprConstant.cpp2
1 files changed, 0 insertions, 2 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();