Fix retriving parent Function.

llvm-svn: 13001
This commit is contained in:
Misha Brukman 2004-04-16 17:37:12 +00:00
parent a2cc39ff28
commit cb5de6bca6

View File

@ -81,7 +81,7 @@ BasicBlock::BasicBlock(const std::string &Name, Function *Parent,
BasicBlock::~BasicBlock() {
assert(Parent == 0 && "BasicBlock still linked into the program!");
assert(getParent() == 0 && "BasicBlock still linked into the program!");
dropAllReferences();
InstList.clear();
}