mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
incorporate review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
333014e256
commit
484f01b386
@ -2188,9 +2188,7 @@ public:
|
|||||||
|
|
||||||
BasicBlock *getSuccessor(unsigned i) const {
|
BasicBlock *getSuccessor(unsigned i) const {
|
||||||
assert(i < getNumSuccessors() && "Successor # out of range for Branch!");
|
assert(i < getNumSuccessors() && "Successor # out of range for Branch!");
|
||||||
if (Value *V = getOperand(i))
|
return cast_or_null<BasicBlock>(getOperand(i));
|
||||||
return cast<BasicBlock>(V);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSuccessor(unsigned idx, BasicBlock *NewSucc) {
|
void setSuccessor(unsigned idx, BasicBlock *NewSucc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user