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
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index faf7839..652b65f 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -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) {