diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-05-07 19:55:38 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-05-07 19:55:38 +0000 |
commit | bc8a35f093282417c8ba8714fedb6cd5166ba627 (patch) | |
tree | ee5956d4f0447e14b04a307f7c830439512eea81 /lldb/source/API/SBTarget.cpp | |
parent | 9589f49b82b594d2ee51a4181ace67f7d4af56f6 (diff) | |
download | bcm5719-llvm-bc8a35f093282417c8ba8714fedb6cd5166ba627.tar.gz bcm5719-llvm-bc8a35f093282417c8ba8714fedb6cd5166ba627.zip |
Let OnDiskHashTable call the destructor of its Items.
OnDiskHashTable::insert() calls the Item constructor via placement new, but
nothing called the destructor. This matters in cases when the Info template
parameter has key_type or data_type typedefs that have a destructor, for
example like IdentifierIndexWriterTrait in clang's GlobalModuleIndex.cpp.
This fixes a 5-year old bug that's been around since the OnDiskHashTable code
was added in r64192. Bug found by LSan!
llvm-svn: 208243
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
0 files changed, 0 insertions, 0 deletions