Add virtual destructor. Whoops!
authorNick Lewycky <nicholas@mxc.ca>
Mon, 21 Nov 2011 18:32:21 +0000 (18:32 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 21 Nov 2011 18:32:21 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145044 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/CaptureTracking.h
lib/Analysis/CaptureTracking.cpp

index b49646b2a253a5d4881e8621030b99ef26890044..01eca6041ea009780f9bc550b9a25fd3b105561d 100644 (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;
index 9be00971dc6796e642ca9eb5b9c8deed6967d14b..03bd70dfa34a64e7ef81959b0d259e2f0c462545 100644 (file)
@@ -19,6 +19,8 @@
 #include "llvm/Analysis/CaptureTracking.h"
 using namespace llvm;
 
+CaptureTracker::~CaptureTracker() {}
+
 namespace {
   struct SimpleCaptureTracker : public CaptureTracker {
     explicit SimpleCaptureTracker(bool ReturnCaptures)