diff options
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocBase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.h b/llvm/lib/CodeGen/RegAllocBase.h index a972fbf1108..d54363536f0 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); |

