aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-03-09 04:02:15 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-03-09 04:02:15 +0000
commitab2ee2ea7518b0539c6adcd158d52a45028271f4 (patch)
treeb4d5b62333db5b12b6b4f0038d823db4041b3463 /lib/CodeGen
parentee0b7f4e099010d4f9f754ca0bb6475595191571 (diff)
Add a virtual dtor to Delegate to silence -Wnon-virtual-dtor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LiveRangeEdit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.h b/lib/CodeGen/LiveRangeEdit.h
index db62eaa49c..aa86740773 100644
--- a/lib/CodeGen/LiveRangeEdit.h
+++ b/lib/CodeGen/LiveRangeEdit.h
@@ -34,6 +34,7 @@ public:
struct Delegate {
/// Called immediately before erasing a dead machine instruction.
virtual void LRE_WillEraseInstruction(MachineInstr *MI) {}
+ virtual ~Delegate() {}
};
private: