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
This commit is contained in:
Nick Lewycky 2012-10-12 04:13:25 +00:00
parent a7ca3c2a28
commit 863ff7c903

View File

@ -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;