This is an archive of the discontinued LLVM Phabricator instance.

Aliasees no longer have to be GlobalObjects
ClosedPublic

Authored by mkuper on Dec 22 2014, 6:31 AM.

Details

Reviewers
rafael
Summary

r210062 reverted the need for aliasees of GlobalAliases to be GlobalObjects, but left a cast<> in CloneModule() that was added in r209007 in place.

Removing the cast.

Diff Detail

Event Timeline

mkuper updated this revision to Diff 17555.Dec 22 2014, 6:31 AM
mkuper retitled this revision from to Aliasees no longer have to be GlobalObjects.
mkuper updated this object.
mkuper edited the test plan for this revision. (Show Details)
mkuper added a reviewer: rafael.
mkuper added a subscriber: Unknown Object (MLST).
rafael accepted this revision.Dec 22 2014, 8:30 AM
rafael edited edge metadata.

LGTM as is since this can be read as a code cleanup.

But it would be awesome to have a testcase :-)

This revision is now accepted and ready to land.Dec 22 2014, 8:30 AM

Thanks Rafael.

So, the problem is that I'm not sure how to construct a test-case for this.
I've ran into it when debugging a crash in InstCombine and having bugpoint itself crash on the module while trying to reduce it. And it looks like bugpoint is also the only thing actually using this interface.

I'll commit it as is, if you have a good idea for how to test this, let me know.