diff --git a/llvm/lib/CodeGen/RegAllocBase.h b/llvm/lib/CodeGen/RegAllocBase.h index a972fbf11082..d54363536f08 100644 --- a/llvm/lib/CodeGen/RegAllocBase.h +++ b/llvm/lib/CodeGen/RegAllocBase.h @@ -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);