commit | 062224cde73b1fd9a1a343d300f0fec484fa1340 | [log] [tgz] |
---|---|---|
author | Bryant Wong <llvm-commits@xorshift.org> | Wed Apr 05 22:23:48 2017 +0000 |
committer | Bryant Wong <llvm-commits@xorshift.org> | Wed Apr 05 22:23:48 2017 +0000 |
tree | 341284e8c28daa44e721ca2145278a31f6b943c2 | |
parent | 15bfd0f9a039cdda59dc67f2c6b8c069235f80ea [diff] |
[Bugpoint] Use `unique_ptr` correctly. Moving Modules into `testMergedProgram` is incorrect (and causes segmentation faults) since all callers expect to retain ownership. This is evidenced by the later calls to `unique_ptr<Module>::get` in the same function. Differential Revision: https://reviews.llvm.org/D31727 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299596 91177308-0d34-0410-b5e6-96231b3b80d8