[llvm-commits] [llvm] r134867 - /llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h

Chandler Carruth chandlerc at gmail.com
Sun Jul 10 01:38:12 PDT 2011


Author: chandlerc
Date: Sun Jul 10 03:38:12 2011
New Revision: 134867

URL: http://llvm.org/viewvc/llvm-project?rev=134867&view=rev
Log:
Make the destructor virtual to silence GCC's -Wnon-virtual-dtor. Let me
know if there is some problem with this destructor being virtual...

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h?rev=134867&r1=134866&r2=134867&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h Sun Jul 10 03:38:12 2011
@@ -27,7 +27,7 @@
   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.





More information about the llvm-commits mailing list