Add a virtual dtor to Delegate to silence -Wnon-virtual-dtor
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 9 Mar 2011 04:02:15 +0000 (04:02 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 9 Mar 2011 04:02:15 +0000 (04:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127311 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveRangeEdit.h

index db62eaa49c10ad65dadf218226e1b44a0f5d3532..aa86740773f3403ee7266a9f90dd1d3833a5007d 100644 (file)
@@ -34,6 +34,7 @@ public:
   struct Delegate {
     /// Called immediately before erasing a dead machine instruction.
     virtual void LRE_WillEraseInstruction(MachineInstr *MI) {}
+    virtual ~Delegate() {}
   };
 
 private: