diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-10-12 04:13:25 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-10-12 04:13:25 +0000 |
commit | 863ff7c9037d06e77cd4d39c637707aa135db40d (patch) | |
tree | e0c6cae6b7f751f3c8e82b69a7115f2ac7ae9f7f /include/llvm/Target | |
parent | a7ca3c2a286bded5e2c323763d905aac7f5ec7c9 (diff) | |
download | external_llvm-863ff7c9037d06e77cd4d39c637707aa135db40d.zip external_llvm-863ff7c9037d06e77cd4d39c637707aa135db40d.tar.gz external_llvm-863ff7c9037d06e77cd4d39c637707aa135db40d.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetTransformImpl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetTransformImpl.h b/include/llvm/Target/TargetTransformImpl.h index e240cdf..167fe53 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; |