A class that is meant to be a base class should have a virtual destructor

llvm-svn: 13470
This commit is contained in:
Chris Lattner 2004-05-11 20:41:07 +00:00
parent 415532491a
commit d7d574db01
1 changed files with 2 additions and 0 deletions

View File

@ -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