diff --git a/include/llvm/Support/MemoryObject.h b/include/llvm/Support/MemoryObject.h index 8368965b9c9..fd0e966bc9c 100644 --- a/include/llvm/Support/MemoryObject.h +++ b/include/llvm/Support/MemoryObject.h @@ -20,7 +20,7 @@ namespace llvm { class MemoryObject { public: /// Destructor - Override as necessary. - ~MemoryObject() { + virtual ~MemoryObject() { } /// getBase - Returns the lowest valid address in the region.