mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Assert if Instruction is being deleted before being removed from BasicBlock.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
265c87a6ef
commit
bf6059300f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user