Fix -Wnon-virtual-dtor warning introduced in r217982.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-09-17 22:15:40 +00:00
parent 0a1dc0d78f
commit be048a0770
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ private:
const TargetLibraryInfo *TLI; const TargetLibraryInfo *TLI;
bool UnsafeFPShrink; bool UnsafeFPShrink;
protected:
~LibCallSimplifier() {}
public: public:
LibCallSimplifier(const DataLayout *TD, const TargetLibraryInfo *TLI, LibCallSimplifier(const DataLayout *TD, const TargetLibraryInfo *TLI,
bool UnsafeFPShrink); bool UnsafeFPShrink);

View File

@ -2908,7 +2908,7 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
} }
namespace { namespace {
class InstCombinerLibCallSimplifier : public LibCallSimplifier { class InstCombinerLibCallSimplifier final : public LibCallSimplifier {
InstCombiner *IC; InstCombiner *IC;
public: public:
InstCombinerLibCallSimplifier(const DataLayout *DL, InstCombinerLibCallSimplifier(const DataLayout *DL,