From: Nick Lewycky Date: Mon, 21 Nov 2011 18:32:21 +0000 (+0000) Subject: Add virtual destructor. Whoops! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6935b78e6f3b7dca7786041c56c9a795d2247659;p=oota-llvm.git Add virtual destructor. Whoops! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145044 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/CaptureTracking.h b/include/llvm/Analysis/CaptureTracking.h index b49646b2a25..01eca6041ea 100644 --- a/include/llvm/Analysis/CaptureTracking.h +++ b/include/llvm/Analysis/CaptureTracking.h @@ -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; diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index 9be00971dc6..03bd70dfa34 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/lib/Analysis/CaptureTracking.cpp @@ -19,6 +19,8 @@ #include "llvm/Analysis/CaptureTracking.h" using namespace llvm; +CaptureTracker::~CaptureTracker() {} + namespace { struct SimpleCaptureTracker : public CaptureTracker { explicit SimpleCaptureTracker(bool ReturnCaptures)