diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-24 22:27:20 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-24 22:27:20 +0000 |
| commit | 9c47b25868b214ebdfd0b30da769536d38472702 (patch) | |
| tree | 6d04645e67f7fff7cdd2db25bf2d232c034aa886 /llvm/lib | |
| parent | ad750a80eb5489b5c4f677d0c80e648eb53f7be7 (diff) | |
| download | bcm5719-llvm-9c47b25868b214ebdfd0b30da769536d38472702.tar.gz bcm5719-llvm-9c47b25868b214ebdfd0b30da769536d38472702.zip | |
Shut GCC 4.0 up about classes with virtual functions but no virtual
destructor.
llvm-svn: 21510
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/ConstantFolding.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/ConstantFolding.cpp b/llvm/lib/VMCore/ConstantFolding.cpp index 9ca8de302f1..98fcf1a32e4 100644 --- a/llvm/lib/VMCore/ConstantFolding.cpp +++ b/llvm/lib/VMCore/ConstantFolding.cpp @@ -30,6 +30,7 @@ using namespace llvm; namespace { struct ConstRules { ConstRules() {} + virtual ~ConstRules() {} // Binary Operators... virtual Constant *add(const Constant *V1, const Constant *V2) const = 0; @@ -86,6 +87,7 @@ namespace { template<class ArgType, class SubClassName> class TemplateRules : public ConstRules { + //===--------------------------------------------------------------------===// // Redirecting functions that cast to the appropriate types //===--------------------------------------------------------------------===// @@ -202,6 +204,9 @@ class TemplateRules : public ConstRules { static Constant *CastToDouble(const Constant *V) { return 0; } static Constant *CastToPointer(const Constant *, const PointerType *) {return 0;} + +public: + virtual ~TemplateRules() {} }; |

