This is an archive of the discontinued LLVM Phabricator instance.

InferAddressSpaces: Fix cloning original addrspacecast
ClosedPublic

Authored by arsenm on Jun 17 2019, 4:30 AM.

Details

Reviewers
hliao
tra
yaxunl
Summary

If an addrspacecast needed to be inserted again, this was creating a
clone of the original cast for each user. Just use the original, which
also saves losing the value name.

Diff Detail

Event Timeline

arsenm created this revision.Jun 17 2019, 4:30 AM
hliao accepted this revision.Jun 17 2019, 6:46 AM

LGTM

This revision is now accepted and ready to land.Jun 17 2019, 6:46 AM
arsenm closed this revision.Jun 17 2019, 7:10 AM

r363562