summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-20 21:50:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-20 21:50:17 +0000
commite4d798f07897a6378d0f2588e4c2335ec85ca935 (patch)
tree6f31c0fc2740ae77aa711c1f9da94a19d825af98 /clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
parentf2a2f5f2bfe9da1a3e0a25934d833956b04bb8a5 (diff)
downloadbcm5719-llvm-e4d798f07897a6378d0f2588e4c2335ec85ca935.tar.gz
bcm5719-llvm-e4d798f07897a6378d0f2588e4c2335ec85ca935.zip
More dead code removal (using -Wunreachable-code)
llvm-svn: 148577
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp b/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
index 6fa7bb1ec52..fc573814f63 100644
--- a/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
+++ b/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
@@ -231,16 +231,12 @@ static llvm::APSInt computeAdjustment(const SymExpr *LHS,
switch (SE->getOpcode()) {
case BO_Add:
return SE->getRHS();
- break;
case BO_Sub:
return -SE->getRHS();
- break;
default:
// We cannot simplify non-additive operators.
return DefaultAdjustment;
}
-
- return DefaultAdjustment;
}
const ProgramState *SimpleConstraintManager::assumeSymRel(const ProgramState *state,
OpenPOWER on IntegriCloud