Make the destructor virtual to silence GCC's -Wnon-virtual-dtor. Let me
authorChandler Carruth <chandlerc@gmail.com>
Sun, 10 Jul 2011 08:38:12 +0000 (08:38 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 10 Jul 2011 08:38:12 +0000 (08:38 +0000)
know if there is some problem with this destructor being virtual...

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

include/llvm/Transforms/Utils/ValueMapper.h

index c786342debb1ccd796a8252ee0c62e36e4bddcae..2194373c45b331b93f49cbc6781d15dbb2b8c2fa 100644 (file)
@@ -27,7 +27,7 @@ namespace llvm {
   class ValueMapTypeRemapper {
     virtual void Anchor();  // Out of line method.
   public:
-    ~ValueMapTypeRemapper() {}
+    virtual ~ValueMapTypeRemapper() {}
     
     /// remapType - The client should implement this method if they want to
     /// remap types while mapping values.