From: Nick Lewycky Date: Fri, 12 Aug 2011 00:32:15 +0000 (+0000) Subject: A virtual destructor for the class with virtual methods! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2fc75d5d602dd9e992661cfda7bae5877817fe5b;p=oota-llvm.git A virtual destructor for the class with virtual methods! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137400 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/LexicalScopes.h b/include/llvm/CodeGen/LexicalScopes.h index dbdb58e2437..ccbd6dae6c5 100644 --- a/include/llvm/CodeGen/LexicalScopes.h +++ b/include/llvm/CodeGen/LexicalScopes.h @@ -44,7 +44,7 @@ typedef std::pair InsnRange; class LexicalScopes { public: LexicalScopes() : MF(NULL), CurrentFnLexicalScope(NULL) { } - ~LexicalScopes(); + virtual ~LexicalScopes(); /// initialize - Scan machine function and constuct lexical scope nest. virtual void initialize(const MachineFunction &);