summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-stress/llvm-stress.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-09-19 05:08:30 +0000
committerAndrew Trick <atrick@apple.com>2012-09-19 05:08:30 +0000
commitbecbbbe112111aebe99df762dc23355b62b4a6ea (patch)
tree12769b86f3a92489f34a0c9a0b947087288b9b7f /llvm/tools/llvm-stress/llvm-stress.cpp
parent8d8639bc55a6d281b46d7ebbba99c3762d165eda (diff)
downloadbcm5719-llvm-becbbbe112111aebe99df762dc23355b62b4a6ea.tar.gz
bcm5719-llvm-becbbbe112111aebe99df762dc23355b62b4a6ea.zip
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. llvm-svn: 164201
Diffstat (limited to 'llvm/tools/llvm-stress/llvm-stress.cpp')
-rw-r--r--llvm/tools/llvm-stress/llvm-stress.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-stress/llvm-stress.cpp b/llvm/tools/llvm-stress/llvm-stress.cpp
index 31252dd7f77..8473d94731a 100644
--- a/llvm/tools/llvm-stress/llvm-stress.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud