There is Instruction::getNumSuccessors(), Instruction::getSuccessor()
and Instruction::setSuccessor(), but no function to replace every
specified BasicBlock* successor with some other specified BasicBlock*.
I've found one place where it should clearly be used.
Details
Details
- Reviewers
chandlerc craig.topper spatel danielcdh - Commits
- rZORGae907749049e: [NFC] Instruction: introduce replaceSuccessorWith() function, use it
rZORGabab05b67b43: [NFC] Instruction: introduce replaceSuccessorWith() function, use it
rGae907749049e: [NFC] Instruction: introduce replaceSuccessorWith() function, use it
rGabab05b67b43: [NFC] Instruction: introduce replaceSuccessorWith() function, use it
rG7ad5d14f3a2c: [NFC] Instruction: introduce replaceSuccessorWith() function, use it
rL359994: [NFC] Instruction: introduce replaceSuccessorWith() function, use it
Diff Detail
Diff Detail
- Repository
- rL LLVM