projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a94e3
)
Move parent assertion check before metadata deletion.
author
Devang Patel
<dpatel@apple.com>
Thu, 24 Sep 2009 16:19:11 +0000
(16:19 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 24 Sep 2009 16:19:11 +0000
(16:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82692
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instruction.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instruction.cpp
b/lib/VMCore/Instruction.cpp
index 5cb1040e4bc4a41dc4483dbe2776d392fc46980d..4df536e68b4eaadef474e2517811b54cd1ddd7ce 100644
(file)
--- 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!");
}