[llvm] r217988 - Fix -Wnon-virtual-dtor warning introduced in r217982.
David Blaikie
dblaikie at gmail.com
Wed Sep 17 15:15:40 PDT 2014
Author: dblaikie
Date: Wed Sep 17 17:15:40 2014
New Revision: 217988
URL: http://llvm.org/viewvc/llvm-project?rev=217988&view=rev
Log:
Fix -Wnon-virtual-dtor warning introduced in r217982.
Modified:
llvm/trunk/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp
Modified: llvm/trunk/include/llvm/Transforms/Utils/SimplifyLibCalls.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/SimplifyLibCalls.h?rev=217988&r1=217987&r2=217988&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/SimplifyLibCalls.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/SimplifyLibCalls.h Wed Sep 17 17:15:40 2014
@@ -36,6 +36,9 @@ private:
const TargetLibraryInfo *TLI;
bool UnsafeFPShrink;
+protected:
+ ~LibCallSimplifier() {}
+
public:
LibCallSimplifier(const DataLayout *TD, const TargetLibraryInfo *TLI,
bool UnsafeFPShrink);
Modified: llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp?rev=217988&r1=217987&r2=217988&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp Wed Sep 17 17:15:40 2014
@@ -2908,7 +2908,7 @@ bool InstCombiner::DoOneIteration(Functi
}
namespace {
-class InstCombinerLibCallSimplifier : public LibCallSimplifier {
+class InstCombinerLibCallSimplifier final : public LibCallSimplifier {
InstCombiner *IC;
public:
InstCombinerLibCallSimplifier(const DataLayout *DL,
More information about the llvm-commits
mailing list