diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-05-06 17:18:03 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-05-06 17:18:03 +0000 |
commit | 5f8116ba465c538fc080ce91ce1d1b9bb6102cac (patch) | |
tree | 705dc055a665e452e7ebcdf20b5dc78401e167f3 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | |
parent | c14ccc9184fc1bf02212fb85fdce36e9be8558d5 (diff) | |
download | llvm-5f8116ba465c538fc080ce91ce1d1b9bb6102cac.zip llvm-5f8116ba465c538fc080ce91ce1d1b9bb6102cac.tar.gz llvm-5f8116ba465c538fc080ce91ce1d1b9bb6102cac.tar.bz2 |
Fix a leak found by LSan: ConsumedBlockInfo owns its StateMapsArray entries.
(I tried converting StateMapsArray to a vector<unique_ptr> and changing the
types of getInfo() and addInfo() to take unique_ptrs. This mostly worked,
except for the three-argument form of addInfo() which I found confusing enough
that I went with this simpler fix for now.)
llvm-svn: 208108
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
0 files changed, 0 insertions, 0 deletions