Add virtual destructor. Whoops!

llvm-svn: 145044
This commit is contained in:
Nick Lewycky 2011-11-21 18:32:21 +00:00
parent d150ad3f07
commit aa2a00db35
2 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,8 @@ namespace llvm {
/// addition to the interface here, you'll need to provide your own getters
/// to see whether anything was captured.
struct CaptureTracker {
virtual ~CaptureTracker();
/// tooManyUses - The depth of traversal has breached a limit. There may be
/// capturing instructions that will not be passed into captured().
virtual void tooManyUses() = 0;

View File

@ -19,6 +19,8 @@
#include "llvm/Analysis/CaptureTracking.h"
using namespace llvm;
CaptureTracker::~CaptureTracker() {}
namespace {
struct SimpleCaptureTracker : public CaptureTracker {
explicit SimpleCaptureTracker(bool ReturnCaptures)