[llvm-commits] [llvm] r164201 - /llvm/trunk/tools/llvm-stress/llvm-stress.cpp
Andrew Trick
atrick at apple.com
Tue Sep 18 22:08:30 PDT 2012
Author: atrick
Date: Wed Sep 19 00:08:30 2012
New Revision: 164201
URL: http://llvm.org/viewvc/llvm-project?rev=164201&view=rev
Log:
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.
Modified:
llvm/trunk/tools/llvm-stress/llvm-stress.cpp
Modified: llvm/trunk/tools/llvm-stress/llvm-stress.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-stress/llvm-stress.cpp?rev=164201&r1=164200&r2=164201&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-stress/llvm-stress.cpp (original)
+++ llvm/trunk/tools/llvm-stress/llvm-stress.cpp Wed Sep 19 00:08:30 2012
@@ -126,6 +126,10 @@
/// 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,
More information about the llvm-commits
mailing list