summaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-11 20:51:02 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-11 20:51:02 +0000
commitb8873558cf16893989778095cff342ae2adbc56a (patch)
tree8f0d204a0ab395023a2a1e6840323e4a803bac20 /lib/Analysis/CFRefCount.cpp
parentf9561e51e8a0949727fb1920226e90650c54456a (diff)
downloadclang-b8873558cf16893989778095cff342ae2adbc56a.tar.gz
clang-b8873558cf16893989778095cff342ae2adbc56a.tar.bz2
clang-b8873558cf16893989778095cff342ae2adbc56a.tar.xz
Added FIXME
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index a9a7aaa117..27812f5a74 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -693,9 +693,13 @@ void CFRefCount::EvalCall(ExplodedNodeSet<ValueState>& Dst,
break;
}
}
- }
- else if (isa<LVal>(V)) // Nuke all arguments passed by reference.
+ }
+ else if (isa<LVal>(V)) { // Nuke all arguments passed by reference.
+
+ // FIXME: This is basically copy-and-paste from GRSimpleVals. We
+ // should compose behavior, not copy it.
StateMgr.Unbind(StVals, cast<LVal>(V));
+ }
}
if (hasError) {
@@ -733,6 +737,8 @@ void CFRefCount::EvalCall(ExplodedNodeSet<ValueState>& Dst,
case RetEffect::NoRet:
// Make up a symbol for the return value (not reference counted).
+ // FIXME: This is basically copy-and-paste from GRSimpleVals. We
+ // should compose behavior, not copy it.
if (CE->getType() != Eng.getContext().VoidTy) {
unsigned Count = Builder.getCurrentBlockCount();