summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ListReducer.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-11 20:41:07 +0000
committerChris Lattner <sabre@nondot.org>2004-05-11 20:41:07 +0000
commitd7d574db018b1c19bf3afb98ca8836e6ec049056 (patch)
tree279076c9444b40bc3b8d4307ed5e3b0c553003b3 /llvm/tools/bugpoint/ListReducer.h
parent415532491af9b1512338d007820da0101eb4732b (diff)
downloadbcm5719-llvm-d7d574db018b1c19bf3afb98ca8836e6ec049056.tar.gz
bcm5719-llvm-d7d574db018b1c19bf3afb98ca8836e6ec049056.zip
A class that is meant to be a base class should have a virtual destructor
llvm-svn: 13470
Diffstat (limited to 'llvm/tools/bugpoint/ListReducer.h')
-rw-r--r--llvm/tools/bugpoint/ListReducer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/ListReducer.h b/llvm/tools/bugpoint/ListReducer.h
index 07c0a2d1dd1..9e248ff1ccd 100644
--- a/llvm/tools/bugpoint/ListReducer.h
+++ b/llvm/tools/bugpoint/ListReducer.h
@@ -28,6 +28,8 @@ struct ListReducer {
KeepPrefix, // The prefix alone satisfies the predicate
};
+ virtual ~ListReducer() {}
+
// doTest - This virtual function should be overriden by subclasses to
// implement the test desired. The testcase is only required to test to see
// if the Kept list still satisfies the property, but if it is going to check
OpenPOWER on IntegriCloud