llvm-uselistorder: Fix memory leak from r214125
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 30 Jul 2014 16:50:22 +0000 (16:50 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 30 Jul 2014 16:50:22 +0000 (16:50 +0000)
commit8a0adeac976f6729da2afa0121e14f53512f4632
tree32e1e8de03bc81c0f12766139a89d7ba04afc476
parent3cf4af11d5386fcd253ad581193dbd22ad665bb7
llvm-uselistorder: Fix memory leak from r214125

Turns out `parseBitcodeFile()` does *not* take ownership of the buffer.
This was already clear in the header docs, but I obviously didn't read
them (having noticed that it gets stored in a `unique_ptr<>`).

llvm-svn: 214313
llvm/tools/llvm-uselistorder/llvm-uselistorder.cpp