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:
265c87a
)
Assert if Instruction is being deleted before being removed from BasicBlock.
author
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 16 Apr 2004 15:46:43 +0000
(15:46 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 16 Apr 2004 15:46:43 +0000
(15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12982
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Instruction.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instruction.h
b/include/llvm/Instruction.h
index 035687e4b8fbd4efd2a3aefb14f7a577f384a91a..fae6d2a11a4b65228ba6e462cabb619312389d62 100644
(file)
--- a/
include/llvm/Instruction.h
+++ b/
include/llvm/Instruction.h
@@
-43,6
+43,10
@@
protected:
Instruction *InsertBefore = 0);
public:
+ ~Instruction() {
+ assert(Parent == 0 && "Instruction still linked in the program!");
+ }
+
// Specialize setName to handle symbol table majik...
virtual void setName(const std::string &name, SymbolTable *ST = 0);