aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/BasicBlock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp
index c24a61e466..48aa7cfe6f 100644
--- a/lib/VMCore/BasicBlock.cpp
+++ b/lib/VMCore/BasicBlock.cpp
@@ -81,6 +81,7 @@ BasicBlock::BasicBlock(const std::string &Name, Function *Parent,
BasicBlock::~BasicBlock() {
+ assert(Parent == 0 && "BasicBlock still linked into the program!");
dropAllReferences();
InstList.clear();
}