diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-22 21:10:18 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-22 21:10:18 +0000 |
commit | 0fe33bc94a822e315585e5cde1964d3c3b9052f9 (patch) | |
tree | 37a7aaad6e07752e567ddef1b23ca47b3ec7bbcb /lib/Analysis/ValueState.cpp | |
parent | 9fdf9c6d3530bb85f3166e6460d841e2ff8e1a2c (diff) |
Added "nonlval::LValAsInteger" to represent abstract LVals casted to integers, allowing us to track lvals when they are casted back to pointers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ValueState.cpp')
-rw-r--r-- | lib/Analysis/ValueState.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Analysis/ValueState.cpp b/lib/Analysis/ValueState.cpp index c0ed7aa882..bba2e06a18 100644 --- a/lib/Analysis/ValueState.cpp +++ b/lib/Analysis/ValueState.cpp @@ -277,12 +277,7 @@ RVal ValueStateManager::GetRVal(ValueState* St, Expr* E) { return UnknownVal(); QualType ST = C->getSubExpr()->getType(); - - if (CT == ST || (CT->isPointerType() && ST->isFunctionType())) { - E = C->getSubExpr(); - continue; - } - + break; } @@ -294,11 +289,6 @@ RVal ValueStateManager::GetRVal(ValueState* St, Expr* E) { if (CT->isVoidType()) return UnknownVal(); - if (CT == ST || (CT->isPointerType() && ST->isFunctionType())) { - E = C->getSubExpr(); - continue; - } - break; } |