summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-08-18 16:08:51 +0000
committerChris Lattner <sabre@nondot.org>2010-08-18 16:08:51 +0000
commit66b67d209ecc7bf0e4f28c0df61864a0d4cf53d8 (patch)
tree3fc1c01145c8ab6b2a323606c4284b9b38222800 /clang/lib/Lex/Preprocessor.cpp
parentc1a42fdd53afe2d837970e6a260c7b76c0a95fd9 (diff)
downloadbcm5719-llvm-66b67d209ecc7bf0e4f28c0df61864a0d4cf53d8.tar.gz
bcm5719-llvm-66b67d209ecc7bf0e4f28c0df61864a0d4cf53d8.zip
no need to pass bumppointer allocator into macroinfo::destroy
llvm-svn: 111364
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 77b88f7e47c..d3959aa7065 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -111,7 +111,7 @@ Preprocessor::~Preprocessor() {
// will be released when the BumpPtrAllocator 'BP' object gets
// destroyed. We still need to run the dtor, however, to free
// memory alocated by MacroInfo.
- I->second->Destroy(BP);
+ I->second->Destroy();
I->first->setHasMacroDefinition(false);
}
for (std::vector<MacroInfo*>::iterator I = MICache.begin(),
@@ -120,7 +120,7 @@ Preprocessor::~Preprocessor() {
// will be released when the BumpPtrAllocator 'BP' object gets
// destroyed. We still need to run the dtor, however, to free
// memory alocated by MacroInfo.
- (*I)->Destroy(BP);
+ (*I)->Destroy();
}
// Free any cached macro expanders.
OpenPOWER on IntegriCloud