Use a vector of unique_ptrs to fix a memory leak introduced in r208179.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 8 May 2014 09:29:28 +0000 (09:29 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 8 May 2014 09:29:28 +0000 (09:29 +0000)
commit01ce4b98ced7c239bdcdd13506a52d4a0cbbbefe
tree79dffa694c6d44cd8d6f225609ed4b9e62510a8a
parentf35ce2376ca361e059ad9390ce1f8467f8756bcd
Use a vector of unique_ptrs to fix a memory leak introduced in r208179.

Also removed an inaccurate comment that stated that a DenseMap was used as
storage for the ListInit*'s. It's currently using a FoldingSet.

I expect there's a better way to fix this but I haven't found it yet. FoldingSet
is incompatible with the Pool template and I'm not sure if FoldingSet can be
safely replaced with a DenseMap of computed FoldingSetID's to ListInit*'s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208293 91177308-0d34-0410-b5e6-96231b3b80d8
lib/TableGen/Record.cpp