From ac7d2955422e4fb4f84ac7a1c4eaa216c7851713 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 10 Jul 2011 08:38:12 +0000 Subject: Make the destructor virtual to silence GCC's -Wnon-virtual-dtor. Let me 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm') diff --git a/include/llvm/Transforms/Utils/ValueMapper.h b/include/llvm/Transforms/Utils/ValueMapper.h index c786342..2194373 100644 --- a/include/llvm/Transforms/Utils/ValueMapper.h +++ b/include/llvm/Transforms/Utils/ValueMapper.h @@ -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. -- cgit v1.1