X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FBasicBlock.cpp;h=23ec70529547682ed60dfd3790c1502a84117d86;hb=416a5187f7804f37183b46d8f7bf43fa89a9b5a3;hp=fe38385d34159c01f5ac08a0a8c922bc902b52fe;hpb=a716c07147b6c2674a3c0a8008f13abec4055baa;p=oota-llvm.git diff --git a/lib/IR/BasicBlock.cpp b/lib/IR/BasicBlock.cpp index fe38385d341..23ec7052954 100644 --- a/lib/IR/BasicBlock.cpp +++ b/lib/IR/BasicBlock.cpp @@ -94,8 +94,8 @@ void BasicBlock::removeFromParent() { getParent()->getBasicBlockList().remove(this); } -void BasicBlock::eraseFromParent() { - getParent()->getBasicBlockList().erase(this); +iplist::iterator BasicBlock::eraseFromParent() { + return getParent()->getBasicBlockList().erase(this); } /// Unlink this basic block from its current function and