[llvm-commits] [llvm] r117180 - /llvm/trunk/lib/CodeGen/RegAllocBase.h

Andrew Trick atrick at apple.com
Fri Oct 22 16:33:19 PDT 2010


Author: atrick
Date: Fri Oct 22 18:33:19 2010
New Revision: 117180

URL: http://llvm.org/viewvc/llvm-project?rev=117180&view=rev
Log:
Nonvirtual dtor that was accessible enough to be bad.

Modified:
    llvm/trunk/lib/CodeGen/RegAllocBase.h

Modified: llvm/trunk/lib/CodeGen/RegAllocBase.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBase.h?rev=117180&r1=117179&r2=117180&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBase.h (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBase.h Fri Oct 22 18:33:19 2010
@@ -87,6 +87,8 @@
 
   RegAllocBase(): tri_(0), vrm_(0), lis_(0) {}
 
+  virtual ~RegAllocBase() {}
+
   // A RegAlloc pass should call this before allocatePhysRegs.
   void init(const TargetRegisterInfo &tri, VirtRegMap &vrm, LiveIntervals &lis);
 





More information about the llvm-commits mailing list