[mach-o] Fix TrieEdge leak
authorNick Kledzik <kledzik@apple.com>
Tue, 2 Dec 2014 01:50:44 +0000 (01:50 +0000)
committerNick Kledzik <kledzik@apple.com>
Tue, 2 Dec 2014 01:50:44 +0000 (01:50 +0000)
commit07ba5121a12f31bfeb38630e16b18310a302f6ba
tree3a9b7eb908302bcf3c90e448f4aa7c742dcce0eb
parenta441b7b0505954242a6741ef404037894a24dc3c
[mach-o] Fix TrieEdge leak

In PR21682 Jean-Daliel Dupas found a leak in the trie builder and suggested
a fix was to use a list instead of SmallVector so that the list elements
could be allocated in the BumpPtrAllocator.

llvm-svn: 223104
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp