commit | 67886788e22447032d6396589dc5f895e2ebe108 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Sat May 27 17:36:50 2017 |
committer | Craig Topper <craig.topper@gmail.com> | Sat May 27 17:36:50 2017 |
tree | abbbd2a85ec8a497f8ebc3f5d09cd5cb0f01bd07 | |
parent | 8e1db259e8606ac91d37266e5561a85a7d1823bd [diff] |
[TableGen] Prevent DagInit from leaking its Args and ArgNames when they exceed the size of the SmallVector. DagInits are allocated in a BumpPtrAllocator so they are never destructed. This means the destructor for the SmallVector never runs. To fix this we now allocate the vectors in the BumpPtrAllocator too using TrailingObjects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304077 91177308-0d34-0410-b5e6-96231b3b80d8