diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-11 20:41:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-11 20:41:07 +0000 |
commit | 1c2f68631e7710343bb7ba11b082ac91bdb9374d (patch) | |
tree | 24b0fda4886c4fb1b0490604f80af37b7cef87d9 /tools/bugpoint/ListReducer.h | |
parent | 8436c21ad1a85ca1e68bca2e332fd45f024b478a (diff) | |
download | llvm-1c2f68631e7710343bb7ba11b082ac91bdb9374d.tar.gz llvm-1c2f68631e7710343bb7ba11b082ac91bdb9374d.tar.bz2 llvm-1c2f68631e7710343bb7ba11b082ac91bdb9374d.tar.xz |
A class that is meant to be a base class should have a virtual destructor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ListReducer.h')
-rw-r--r-- | tools/bugpoint/ListReducer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bugpoint/ListReducer.h b/tools/bugpoint/ListReducer.h index 07c0a2d1dd..9e248ff1cc 100644 --- a/tools/bugpoint/ListReducer.h +++ b/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 |