diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-05-27 17:36:50 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-05-27 17:36:50 +0000 |
| commit | a568c72b7dbb8152034d2a3f1a7732b020d85b54 (patch) | |
| tree | d32016a8b078bda44f4f800ccb31d5ca260ff97f /llvm/lib/Object/MachOObjectFile.cpp | |
| parent | 0836449337cc9ee563fc8bf9b5f7c30bfcca81f8 (diff) | |
| download | bcm5719-llvm-a568c72b7dbb8152034d2a3f1a7732b020d85b54.tar.gz bcm5719-llvm-a568c72b7dbb8152034d2a3f1a7732b020d85b54.zip | |
[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.
llvm-svn: 304077
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions

