diff options
author | Pete Cooper <peter_cooper@apple.com> | 2016-01-25 21:50:54 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2016-01-25 21:50:54 +0000 |
commit | e420dd4d844ad3358bbaeed3b322a61838a6d986 (patch) | |
tree | 17b999a9be297337235810fff6e127be66c12f44 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 304d135f56b92ae63cdb2cdbb5cff0a20f0cc7b4 (diff) | |
download | llvm-e420dd4d844ad3358bbaeed3b322a61838a6d986.zip llvm-e420dd4d844ad3358bbaeed3b322a61838a6d986.tar.gz llvm-e420dd4d844ad3358bbaeed3b322a61838a6d986.tar.bz2 |
Use an ilist instead of std::list. NFC.
The TrieNode/TrieEdge data structures here are allocated in a bumpptrallocator.
Unfortunately, TrieNode contained a std::list<TrieEdge> and as the allocator doesn't
call the TrieNode destructor, we ended up leaking the memory allocated by the std::list
itself.
Instead we can use an intrusive list as then we save the extra allocations anyway.
llvm-svn: 258725
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions