Skip to content

Commit

Permalink
[Passes] Use a range-based for loop with llvm::successors (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Jan 20, 2024
1 parent 8121835 commit aa530c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Passes/StandardInstrumentations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2119,8 +2119,8 @@ DCData::DCData(const BasicBlock &B) {
addSuccessorLabel(C.getCaseSuccessor()->getName().str(), Value);
}
} else
for (const_succ_iterator I = succ_begin(&B), E = succ_end(&B); I != E; ++I)
addSuccessorLabel((*I)->getName().str(), "");
for (const BasicBlock *Succ : successors(&B))
addSuccessorLabel(Succ->getName().str(), "");
}

DotCfgChangeReporter::DotCfgChangeReporter(bool Verbose)
Expand Down

0 comments on commit aa530c7

Please sign in to comment.