HomePhabricator

[Bugpoint] Use `unique_ptr` correctly.

Authored by bryant on Apr 5 2017, 3:23 PM.

Description

[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

llvm-svn: 299596

Details

Committed
bryantApr 5 2017, 3:23 PM
Differential Revision
D31727: [Bugpoint] Use `unique_ptr` correctly.
Parents
rG0ce388bebb91: Remove unused typedefs.
Branches
Unknown
Tags
Unknown