Devirtualizing Value destructor (PR889). Patch by Pawel Kunio!
[oota-llvm.git] / lib / VMCore / Instruction.cpp
index 7fc6245f6da5b526251e837c7a760f317467e08c..fdee5e8b4603628f24ff1d6883577bcb201e260a 100644 (file)
@@ -46,8 +46,8 @@ Instruction::Instruction(const Type *ty, unsigned it, Use *Ops, unsigned NumOps,
 
 
 // Out of line virtual method, so the vtable, etc has a home.
-Instruction::~Instruction() {
-  assert(Parent == 0 && "Instruction still linked in the program!");
+void Instruction::destroyThis(Instruction*v) {
+  assert(v->Parent == 0 && "Instruction still linked in the program!");
 }