From 67076a91cf5572ae75680b48f507a066e7ea36d4 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Wed, 19 Sep 2012 05:08:30 +0000 Subject: Silence -Wnon-virtual-dtor in llvm-stress. This was making it hard to scan my builds for new warnings. The warning still fires with ToT clang. But if my workaround is unnecessary for whatever reason, feel free to revert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164201 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-stress/llvm-stress.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp index 31252dd7f7..8473d94731 100644 --- a/tools/llvm-stress/llvm-stress.cpp +++ b/tools/llvm-stress/llvm-stress.cpp @@ -126,6 +126,10 @@ public: /// C'tor Modifier(BasicBlock *Block, PieceTable *PT, Random *R): BB(Block),PT(PT),Ran(R),Context(BB->getContext()) {} + + /// virtual D'tor to silence warnings. + virtual ~Modifier() {} + /// Add a new instruction. virtual void Act() = 0; /// Add N new instructions, -- cgit v1.2.3