[llvm-commits] [llvm] r165786 - /llvm/trunk/include/llvm/Target/TargetTransformImpl.h
Nick Lewycky
nicholas at mxc.ca
Thu Oct 11 21:13:26 PDT 2012
Author: nicholas
Date: Thu Oct 11 23:13:25 2012
New Revision: 165786
URL: http://llvm.org/viewvc/llvm-project?rev=165786&view=rev
Log:
Give this class full of virtual functions a virtual destructor. Classes love
virtual destructors.
Modified:
llvm/trunk/include/llvm/Target/TargetTransformImpl.h
Modified: llvm/trunk/include/llvm/Target/TargetTransformImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetTransformImpl.h?rev=165786&r1=165785&r2=165786&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetTransformImpl.h (original)
+++ llvm/trunk/include/llvm/Target/TargetTransformImpl.h Thu Oct 11 23:13:25 2012
@@ -30,7 +30,9 @@
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;
More information about the llvm-commits
mailing list