mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
cleanup: scc_iterator consumers should use isAtEnd
No functional change. Updated loops from: for (I = scc_begin(), E = scc_end(); I != E; ++I) to: for (I = scc_begin(); !I.isAtEnd(); ++I) for teh win. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200789 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -604,8 +604,7 @@ bool FunctionAttrs::AddArgumentAttrs(const CallGraphSCC &SCC) {
|
||||
// made. If the definition doesn't have a 'nocapture' attribute by now, it
|
||||
// captures.
|
||||
|
||||
for (scc_iterator<ArgumentGraph*> I = scc_begin(&AG), E = scc_end(&AG);
|
||||
I != E; ++I) {
|
||||
for (scc_iterator<ArgumentGraph*> I = scc_begin(&AG); !I.isAtEnd(); ++I) {
|
||||
std::vector<ArgumentGraphNode*> &ArgumentSCC = *I;
|
||||
if (ArgumentSCC.size() == 1) {
|
||||
if (!ArgumentSCC[0]->Definition) continue; // synthetic root node
|
||||
|
Reference in New Issue
Block a user