summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoratrick <atrick@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-19 05:08:30 +0000
committeratrick <atrick@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-19 05:08:30 +0000
commit5bc379d0f7fd08e73a42f32740d44fb2e8418de0 (patch)
tree99a67d1f8d6d075f853792d40a217b44f79bee93 /tools
parent9692b7cef49a4d712de3fc40271fcecf3cc01843 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-stress/llvm-stress.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp
index 31252dd7f77..8473d94731a 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,