diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-01 00:07:10 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-01 00:07:10 +0000 |
commit | 94a39005e3733f2e498f2642be95507dda184ca1 (patch) | |
tree | 256ed07e747bd3f98c37fe100eb7c6cd5112126f /lib/Sema/CodeCompleteConsumer.cpp | |
parent | e1599cee9310e523af40c3c8a5f21be6f7302981 (diff) |
Allocate MultipleDC objects using the allocator associated with
ASTContext instead of malloc. Besides reducing malloc traffic, this
also removes a source of memory leaks when using a BumpPtrAllocator
for the allocator of ASTContext. There are still leaks when using
MallocAllocator because Decl::Destroy() isn't fully finished.
Fixes: <rdar://problem/7431556>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/CodeCompleteConsumer.cpp')
0 files changed, 0 insertions, 0 deletions