From c698aea90a7acfb543545511d4a2e002c149a97d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 11 May 2004 20:41:07 +0000 Subject: [PATCH] A class that is meant to be a base class should have a virtual destructor llvm-svn: 13470 --- tools/bugpoint/ListReducer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/bugpoint/ListReducer.h b/tools/bugpoint/ListReducer.h index 07c0a2d1dd1..9e248ff1ccd 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