aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/SimpleSValuator.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-03 04:34:38 +0000
committerChris Lattner <sabre@nondot.org>2010-09-03 04:34:38 +0000
commitfae962200efef618d1c24c14b9c3fed25876f059 (patch)
tree54655eb9c4037456568a604b85c69672860969f1 /lib/Checker/SimpleSValuator.cpp
parent8c465e6494d16a19127873dc9bdc55177ac6b6fd (diff)
"I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignment
should probably be removed if it has no purpose, but I just #if'd it out in case it's usefulIdempotentOperationChecker::isTruncationExtensionAssignment should probably be removed if it has no purpose, but I just #if'd it out in case it's useful git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/SimpleSValuator.cpp')
-rw-r--r--lib/Checker/SimpleSValuator.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Checker/SimpleSValuator.cpp b/lib/Checker/SimpleSValuator.cpp
index 5b48e7cd03..782cd4f5e6 100644
--- a/lib/Checker/SimpleSValuator.cpp
+++ b/lib/Checker/SimpleSValuator.cpp
@@ -848,8 +848,6 @@ SVal SimpleSValuator::EvalBinOpLN(const GRState *state,
rightI.extOrTrunc(leftI.getBitWidth());
// Offset the increment by the pointer size.
- ASTContext &ctx = ValMgr.getContext();
- const PointerType *PT = resultTy->getAs<PointerType>();
llvm::APSInt Multiplicand(rightI.getBitWidth(), /* isUnsigned */ true);
rightI *= Multiplicand;