diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-02-20 05:10:06 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-02-20 05:10:06 +0000 |
commit | 62ac78ae3e5e8198aaba8acaed891349b3de615f (patch) | |
tree | d8b6349da3995c76c6fa389718aa0fb8c5443f59 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | e5aaf3f2cd144b978367086876f24dbe283d0f38 (diff) | |
download | bcm5719-llvm-62ac78ae3e5e8198aaba8acaed891349b3de615f.tar.gz bcm5719-llvm-62ac78ae3e5e8198aaba8acaed891349b3de615f.zip |
LinkerScript: Remove leaks in the parser
LinkerScript AST nodes are never destroyed which means that their
std::vector members will never be destroyed.
Instead, allocate the operand list itself in the Parser's
BumpPtrAllocator. This ensures that the storage will be destroyed along
with the nodes when the Parser is destroyed.
llvm-svn: 229967
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
0 files changed, 0 insertions, 0 deletions