diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-08 16:06:15 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-08 16:06:15 +0000 |
commit | cdba84c0d309be4312b08d0e7daa293c5305eba4 (patch) | |
tree | 76b02ab4e181c1519c6ca40294ebcb34c59df1fd /llvm/tools/llvm-size/llvm-size.cpp | |
parent | 590e5ff473fba9dcace9eee5fc59cb321a22811f (diff) | |
download | bcm5719-llvm-cdba84c0d309be4312b08d0e7daa293c5305eba4.tar.gz bcm5719-llvm-cdba84c0d309be4312b08d0e7daa293c5305eba4.zip |
CompilationDatabase: Sure-up ownership of compilation databases using std::unique_ptr
Diving into the memory leaks fixed by r213851 there was one case of a
memory leak of a CompilationDatabase due to not properly taking
ownership of the result of "CompilationDatabase::autoDetectFromSource".
Given that both implementations and callers have been using unique_ptr
to own CompilationDatabase objects - make this explicit in the API to
reduce the risk of further leaks.
llvm-svn: 215215
Diffstat (limited to 'llvm/tools/llvm-size/llvm-size.cpp')
0 files changed, 0 insertions, 0 deletions