diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 48aa7cfe6f2..dd529f8ee32 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -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(); }