HomePhabricator

[Bugpoint] Use `unique_ptr` correctly.

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

Details

Committed
bryantApr 5 2017, 3:23 PM
Differential Revision
D31727: [Bugpoint] Use `unique_ptr` correctly.
Parents
rL299595: Win snapshot: r299594.
Branches
Unknown
Tags
Unknown