diff --git a/include/llvm/Transforms/Utils/ValueMapper.h b/include/llvm/Transforms/Utils/ValueMapper.h index c786342debb..2194373c45b 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.