aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-24 23:34:17 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-24 23:34:17 +0000
commit6431a269563de05e011fd1cfbd0d95b96eb5fea8 (patch)
treed704cd0989484a90837b15e5e4ba73303733c870 /lib/Analysis/CFRefCount.cpp
parent4094b34a6058e351eeefdfb0639061513f1b4c0a (diff)
Fix broken logic from my last commit. Branches only occur at basic blocks that end with terminators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index faf7839418..652b65f648 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -2707,8 +2707,8 @@ CFRefLeakReport::getEndPath(BugReporter& br, const ExplodedNode<GRState>* EndN){
// FIXME: What we really want is to set LeakN to be the node
// for the BlockEntrance for the branch we took and have BugReporter
// do the right thing.
- atBranch = true;
S = BE->getSrc()->getTerminator();
+ atBranch = (S != 0);
}
if (S) {