mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-19 08:35:45 +00:00
Revert "[C++11] Add predecessors(BasicBlock *) / successors(BasicBlock *) iterator ranges."
This reverts commit r213474 (and r213475), which causes a miscompile on a stage2 LTO build. I'll reply on the list in a moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -321,9 +321,10 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const Twine &BBName) {
|
||||
// successors. If there were PHI nodes in the successors, then they need to
|
||||
// know that incoming branches will be from New, not from Old.
|
||||
//
|
||||
for (BasicBlock *Successor : successors(New)) {
|
||||
for (succ_iterator I = succ_begin(New), E = succ_end(New); I != E; ++I) {
|
||||
// Loop over any phi nodes in the basic block, updating the BB field of
|
||||
// incoming values...
|
||||
BasicBlock *Successor = *I;
|
||||
PHINode *PN;
|
||||
for (BasicBlock::iterator II = Successor->begin();
|
||||
(PN = dyn_cast<PHINode>(II)); ++II) {
|
||||
|
||||
Reference in New Issue
Block a user