[WinEH] Allow CatchHigh to be equal to TryHigh
[oota-llvm.git] / lib / IR / BasicBlock.cpp
index fe38385d34159c01f5ac08a0a8c922bc902b52fe..23ec70529547682ed60dfd3790c1502a84117d86 100644 (file)
@@ -94,8 +94,8 @@ void BasicBlock::removeFromParent() {
   getParent()->getBasicBlockList().remove(this);
 }
 
-void BasicBlock::eraseFromParent() {
-  getParent()->getBasicBlockList().erase(this);
+iplist<BasicBlock>::iterator BasicBlock::eraseFromParent() {
+  return getParent()->getBasicBlockList().erase(this);
 }
 
 /// Unlink this basic block from its current function and