diff --git a/lib/DebugInfo/DWARFUnit.h b/lib/DebugInfo/DWARFUnit.h index e5491954c61..ca105be00d6 100644 --- a/lib/DebugInfo/DWARFUnit.h +++ b/lib/DebugInfo/DWARFUnit.h @@ -35,6 +35,8 @@ public: /// Returns the Unit that contains the given section offset in the /// same section this Unit originated from. virtual DWARFUnit *getUnitForOffset(uint32_t Offset) const = 0; + + virtual ~DWARFUnitSectionBase() {} }; /// Concrete instance of DWARFUnitSection, specialized for one Unit type.