Nonvirtual dtor that was accessible enough to be bad.
authorAndrew Trick <atrick@apple.com>
Fri, 22 Oct 2010 23:33:19 +0000 (23:33 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 22 Oct 2010 23:33:19 +0000 (23:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117180 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocBase.h

index a972fbf11082647039827eed650e5b31d918a7c4..d54363536f0860c6186bfff2d21700245e2e0e25 100644 (file)
@@ -87,6 +87,8 @@ protected:
 
   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);