Provide an empty virtual destructor to go with the virtual methods in
authorChandler Carruth <chandlerc@gmail.com>
Tue, 5 Apr 2011 23:03:24 +0000 (23:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 5 Apr 2011 23:03:24 +0000 (23:03 +0000)
this class. Clang was warning on this with -Wnon-virtual-dtor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128952 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/RuntimeDyld.h

index 01fc33831643dd3390e37b064bfc733d49637997..5d6d45272dff3cc5541428b9a2da9742d457a4f9 100644 (file)
@@ -33,6 +33,7 @@ class RTDyldMemoryManager {
   void operator=(const RTDyldMemoryManager&);       // DO NOT IMPLEMENT
 public:
   RTDyldMemoryManager() {}
+  virtual ~RTDyldMemoryManager() {}
 
   // Allocate ActualSize bytes, or more, for the named function. Return
   // a pointer to the allocated memory and update Size to reflect how much