[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Apr 16 10:48:01 PDT 2004
Changes in directory llvm/lib/VMCore:
BasicBlock.cpp updated: 1.42 -> 1.43
---
Log message:
Assert if deleting BasicBlock before removing it from Function.
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.42 llvm/lib/VMCore/BasicBlock.cpp:1.43
--- llvm/lib/VMCore/BasicBlock.cpp:1.42 Tue Feb 10 19:17:33 2004
+++ llvm/lib/VMCore/BasicBlock.cpp Fri Apr 16 10:47:21 2004
@@ -81,6 +81,7 @@
BasicBlock::~BasicBlock() {
+ assert(Parent == 0 && "BasicBlock still linked into the program!");
dropAllReferences();
InstList.clear();
}
More information about the llvm-commits
mailing list