summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-10 08:38:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-10 08:38:12 +0000
commitac7d2955422e4fb4f84ac7a1c4eaa216c7851713 (patch)
treee2167e6e3e0d4073731b96346c0ece7bd20f6e0f /include/llvm/Transforms
parentf81b7f6069b27c0a515070dcb392f6828437412f (diff)
downloadllvm-ac7d2955422e4fb4f84ac7a1c4eaa216c7851713.tar.gz
llvm-ac7d2955422e4fb4f84ac7a1c4eaa216c7851713.tar.bz2
llvm-ac7d2955422e4fb4f84ac7a1c4eaa216c7851713.tar.xz
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
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Utils/ValueMapper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/ValueMapper.h b/include/llvm/Transforms/Utils/ValueMapper.h
index c786342deb..2194373c45 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.