diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-24 16:19:11 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-24 16:19:11 +0000 |
commit | f9e0a220fc97df6bcbd545009e036a91f67e9cc4 (patch) | |
tree | ece555a21945fd752124f45f4ea5c7d66cecb7ee /lib/VMCore/Instruction.cpp | |
parent | 30a94e3b4203cee64db0edd997780bbe4ad0acdc (diff) | |
download | external_llvm-f9e0a220fc97df6bcbd545009e036a91f67e9cc4.zip external_llvm-f9e0a220fc97df6bcbd545009e036a91f67e9cc4.tar.gz external_llvm-f9e0a220fc97df6bcbd545009e036a91f67e9cc4.tar.bz2 |
Move parent assertion check before metadata deletion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instruction.cpp')
-rw-r--r-- | lib/VMCore/Instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 5cb1040..4df536e 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -50,11 +50,11 @@ 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!"); if (hasMetadata()) { LLVMContext &Context = getContext(); Context.pImpl->TheMetadata.ValueIsDeleted(this); } - assert(Parent == 0 && "Instruction still linked in the program!"); } |