projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ca3c2
)
Give this class full of virtual functions a virtual destructor. Classes love
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 12 Oct 2012 04:13:25 +0000
(
04:13
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 12 Oct 2012 04:13:25 +0000
(
04:13
+0000)
virtual destructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165786
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/TargetTransformImpl.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/TargetTransformImpl.h
b/include/llvm/Target/TargetTransformImpl.h
index e240cdf64a10b01604649e3b786fefe16e22895f..167fe53b3ac4cfe5b20663df9fe015ee9faedacb 100644
(file)
--- 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;