[llvm-commits] [llvm] r127311 - /llvm/trunk/lib/CodeGen/LiveRangeEdit.h
Matt Beaumont-Gay
matthewbg at google.com
Tue Mar 8 20:02:15 PST 2011
Author: matthewbg
Date: Tue Mar 8 22:02:15 2011
New Revision: 127311
URL: http://llvm.org/viewvc/llvm-project?rev=127311&view=rev
Log:
Add a virtual dtor to Delegate to silence -Wnon-virtual-dtor
Modified:
llvm/trunk/lib/CodeGen/LiveRangeEdit.h
Modified: llvm/trunk/lib/CodeGen/LiveRangeEdit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeEdit.h?rev=127311&r1=127310&r2=127311&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeEdit.h (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeEdit.h Tue Mar 8 22:02:15 2011
@@ -34,6 +34,7 @@
struct Delegate {
/// Called immediately before erasing a dead machine instruction.
virtual void LRE_WillEraseInstruction(MachineInstr *MI) {}
+ virtual ~Delegate() {}
};
private:
More information about the llvm-commits
mailing list