This is an archive of the discontinued LLVM Phabricator instance.

[Bugpoint] Fix two crashes in miscompilation debugger
Needs ReviewPublic

Authored by tobiasvk on Mar 11 2016, 3:01 PM.
This revision needs review, but all specified reviewers are disabled or inactive.

Details

Reviewers
espindola
Summary

A while back, a bunch of module pointers were changed to unique_ptrs but the
places where they were used weren't updated correctly. This patch fixes two
crashes I've come across. There may be more.

It's a bit sad that we have no tests for this code path in bugpoint and that
nobody seems to have noticed these until now.

Diff Detail

Event Timeline

tobiasvk updated this revision to Diff 50485.Mar 11 2016, 3:01 PM
tobiasvk retitled this revision from to [Bugpoint] Fix two crashes in miscompilation debugger.
tobiasvk updated this object.
tobiasvk added a reviewer: rafael.
tobiasvk added a subscriber: llvm-commits.
espindola edited reviewers, added: espindola; removed: rafael.Mar 15 2018, 10:53 AM