From 863ff7c9037d06e77cd4d39c637707aa135db40d Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 12 Oct 2012 04:13:25 +0000 Subject: [PATCH] Give this class full of virtual functions a virtual destructor. Classes love virtual destructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165786 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetTransformImpl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/llvm/Target/TargetTransformImpl.h b/include/llvm/Target/TargetTransformImpl.h index e240cdf64a1..167fe53b3ac 100644 --- a/include/llvm/Target/TargetTransformImpl.h +++ b/include/llvm/Target/TargetTransformImpl.h @@ -30,7 +30,9 @@ private: public: /// Ctor - explicit ScalarTargetTransformImpl(const TargetLowering *TL): TLI(TL) {} + explicit ScalarTargetTransformImpl(const TargetLowering *TL) : TLI(TL) {} + + virtual ~ScalarTargetTransformImpl() {} virtual bool isLegalAddImmediate(int64_t imm) const;