Use early return in printing logic. Minor cleanup.

llvm-svn: 178264
This commit is contained in:
Ted Kremenek 2013-03-28 18:43:18 +00:00
parent 0dd8feee93
commit db70b5295e
1 changed files with 4 additions and 2 deletions

View 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 << " : ";