From ed455c8fa25dd37a13b33f0afa66be03ac49b5bb Mon Sep 17 00:00:00 2001 From: Gordon Henriksen Date: Sun, 9 Dec 2007 22:46:10 +0000 Subject: Devirtualizing Value destructor (PR889). Patch by Pawel Kunio! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44747 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Instruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/VMCore/Instruction.cpp') diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 7fc6245f6d..fdee5e8b46 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -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!"); } -- cgit v1.2.3