incorporate review feedback

llvm-svn: 64158
This commit is contained in:
Gabor Greif 2009-02-09 20:27:45 +00:00
parent ff0bb6ce62
commit 5b9974a81f
1 changed files with 1 additions and 3 deletions

View File

@ -2188,9 +2188,7 @@ public:
BasicBlock *getSuccessor(unsigned i) const {
assert(i < getNumSuccessors() && "Successor # out of range for Branch!");
if (Value *V = getOperand(i))
return cast<BasicBlock>(V);
return 0;
return cast_or_null<BasicBlock>(getOperand(i));
}
void setSuccessor(unsigned idx, BasicBlock *NewSucc) {