From 0847b3a6d31df67e99c5158880813b7eefc1fe5a Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 12 Aug 2011 00:32:15 +0000 Subject: [PATCH] A virtual destructor for the class with virtual methods! llvm-svn: 137400 --- llvm/include/llvm/CodeGen/LexicalScopes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/CodeGen/LexicalScopes.h b/llvm/include/llvm/CodeGen/LexicalScopes.h index dbdb58e24370..ccbd6dae6c5e 100644 --- a/llvm/include/llvm/CodeGen/LexicalScopes.h +++ b/llvm/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 &);