aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-12-22 07:40:30 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-12-22 07:40:30 +0000
commita8d835abb81eb26850fa27738df0e42f12fae66a (patch)
tree33af30ba30edf096da087e476f66735c18a88f6d /lib/Checker
parent05e539175d9bac678fca8e77665e88b685729850 (diff)
Always blast through no-op casts when getting expr SVals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker')
-rw-r--r--lib/Checker/Environment.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Checker/Environment.cpp b/lib/Checker/Environment.cpp
index 954129883d..7bf2929161 100644
--- a/lib/Checker/Environment.cpp
+++ b/lib/Checker/Environment.cpp
@@ -63,12 +63,7 @@ SVal Environment::getSVal(const Stmt *E, SValBuilder& svalBuilder) const {
if (CT->isVoidType())
return UnknownVal();
if (C->getCastKind() == CK_NoOp) {
- // If the no-op cast has value, use it. Should we always propagate
- // values through all levels of no-op casts?
- if (const SVal* X = ExprBindings.lookup(C))
- return *X;
- else
- E = C->getSubExpr();
+ E = C->getSubExpr();
continue;
}
break;