Remove unneeded dtors
authorChris Lattner <sabre@nondot.org>
Mon, 6 Oct 2003 17:36:49 +0000 (17:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Oct 2003 17:36:49 +0000 (17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8896 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h
include/llvm/User.h

index 9bd0bd2384bb0bd8f63e49b927fa34de0969bcb0..d21cd422e463181436a7fd815437c908fd5ba3ad 100644 (file)
@@ -30,9 +30,6 @@ protected:
   Instruction(const Type *Ty, unsigned iType, const std::string &Name = "",
               Instruction *InsertBefore = 0);
 public:
-  virtual ~Instruction() {
-    assert(Parent == 0 && "Instruction still embedded in basic block!");
-  }
 
   // Specialize setName to handle symbol table majik...
   virtual void setName(const std::string &name, SymbolTable *ST = 0);
index aa29f6dae380fdd77e2b054e390998b68c9891dd..2175ad0ae06bcb71717aa3418832b6f8b68cff4d 100644 (file)
@@ -20,7 +20,6 @@ protected:
   std::vector<Use> Operands;
 public:
   User(const Type *Ty, ValueTy vty, const std::string &name = "");
-  virtual ~User() { dropAllReferences(); }
 
   inline Value *getOperand(unsigned i) { 
     assert(i < Operands.size() && "getOperand() out of range!");