This is an archive of the discontinued LLVM Phabricator instance.

InferAddressSpaces: Fix bug about replacing addrspacecast
ClosedPublic

Authored by yaxunl on Oct 30 2017, 1:53 PM.

Details

Summary

InferAddressSpaces assumes the pointee type of addrspacecast
is the same as the operand, which is not always true and causes
invalid IR.

This bug cause build failure in HCC.

This patch fixes that.

Diff Detail

Event Timeline

yaxunl created this revision.Oct 30 2017, 1:53 PM
This revision is now accepted and ready to land.Oct 30 2017, 2:01 PM
This revision was automatically updated to reflect the committed changes.