Skip to content

Commit

Permalink
[clang] Make loop in CFGBuilder::VisitCXXTryStmt() more canonical
Browse files Browse the repository at this point in the history
No behavior change.
  • Loading branch information
nico committed Oct 26, 2021
1 parent aa42785 commit 0b7c9ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/Analysis/CFG.cpp
Expand Up @@ -4338,10 +4338,10 @@ CFGBlock *CFGBuilder::VisitCXXTryStmt(CXXTryStmt *Terminator) {
NewTryTerminatedBlock->setTerminator(Terminator);

bool HasCatchAll = false;
for (unsigned h = 0; h <Terminator->getNumHandlers(); ++h) {
for (unsigned I = 0, E = Terminator->getNumHandlers(); I != E; ++I) {
// The code after the try is the implicit successor.
Succ = TrySuccessor;
CXXCatchStmt *CS = Terminator->getHandler(h);
CXXCatchStmt *CS = Terminator->getHandler(I);
if (CS->getExceptionDecl() == nullptr) {
HasCatchAll = true;
}
Expand Down

0 comments on commit 0b7c9ad

Please sign in to comment.