summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-03-28 18:43:18 +0000
committerTed Kremenek <kremenek@apple.com>2013-03-28 18:43:18 +0000
commitdb70b5295e72172c52f5eb1eb934175239c3887f (patch)
tree1b5ec32a4ba745321bcd703d84d9ec700fea89a1 /clang/lib/StaticAnalyzer
parent0dd8feee93baf81bb24fe69a41f75508de549495 (diff)
downloadbcm5719-llvm-db70b5295e72172c52f5eb1eb934175239c3887f.tar.gz
bcm5719-llvm-db70b5295e72172c52f5eb1eb934175239c3887f.zip
Use early return in printing logic. Minor cleanup.
llvm-svn: 178264
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
index 856463a981a..32a0852ee36 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
@@ -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 << " : ";
OpenPOWER on IntegriCloud