diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-20 22:19:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-20 22:19:20 +0000 |
commit | 0301b3ff132a4d986c092d161cb77d74b04cd2a6 (patch) | |
tree | 0bac38518640027c357530d5344af3bc8e09a0da /lib/Lex/Preprocessor.cpp | |
parent | 9f4ecb34d502f6aad7d635dd3aec24a373ef5c9b (diff) |
require the MAcroInfo objects are explcitly destroyed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 31a040674f..7b34cb65e3 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -101,6 +101,7 @@ Preprocessor::~Preprocessor() { // will be released when the BumpPtrAllocator 'BP' object gets // destroyed. We still need to run the dstor, however, to free // memory alocated by MacroInfo. + I->second->Destroy(); I->second->~MacroInfo(); I->first->setHasMacroDefinition(false); } |