We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8121835 commit aa530c7Copy full SHA for aa530c7
llvm/lib/Passes/StandardInstrumentations.cpp
@@ -2119,8 +2119,8 @@ DCData::DCData(const BasicBlock &B) {
2119
addSuccessorLabel(C.getCaseSuccessor()->getName().str(), Value);
2120
}
2121
} else
2122
- for (const_succ_iterator I = succ_begin(&B), E = succ_end(&B); I != E; ++I)
2123
- addSuccessorLabel((*I)->getName().str(), "");
+ for (const BasicBlock *Succ : successors(&B))
+ addSuccessorLabel(Succ->getName().str(), "");
2124
2125
2126
DotCfgChangeReporter::DotCfgChangeReporter(bool Verbose)
0 commit comments