]> granicus.if.org Git - clang/commitdiff
Use early return in printing logic. Minor cleanup.
authorTed Kremenek <kremenek@apple.com>
Thu, 28 Mar 2013 18:43:18 +0000 (18:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 28 Mar 2013 18:43:18 +0000 (18:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178264 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp

index 856463a981a764fbf04834cf1d6be5665577f6e6..32a0852ee36694c967f2a20dc4a456d2e8d6a8ae 100644 (file)
@@ -3661,8 +3661,10 @@ void RetainCountChecker::printState(raw_ostream &Out, ProgramStateRef State,
 
   RefBindingsTy B = State->get<RefBindings>();
 
-  if (!B.isEmpty())
-    Out << Sep << NL;
+  if (B.isEmpty())
+    return;
+
+  Out << Sep << NL;
 
   for (RefBindingsTy::iterator I = B.begin(), E = B.end(); I != E; ++I) {
     Out << I->first << " : ";