[cfe-commits] r65410 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Tue Feb 24 15:34:17 PST 2009


Author: kremenek
Date: Tue Feb 24 17:34:17 2009
New Revision: 65410

URL: http://llvm.org/viewvc/llvm-project?rev=65410&view=rev
Log:
Fix broken logic from my last commit.  Branches only occur at basic blocks that end with terminators.

Modified:
    cfe/trunk/lib/Analysis/CFRefCount.cpp

Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=65410&r1=65409&r2=65410&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Tue Feb 24 17:34:17 2009
@@ -2707,8 +2707,8 @@
       // 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) {





More information about the cfe-commits mailing list