This is an archive of the discontinued LLVM Phabricator instance.

[InferAddressSpaces] Fix assert on invalid cast ordering
ClosedPublic

Authored by kerbowa on Feb 10 2022, 11:28 PM.

Details

Summary

If a cast is needed when replacing uses with newly created values, the
cast must be inserted after the instruction that defines the new value.

Fixes: SWDEV-321215

Diff Detail

Event Timeline

kerbowa created this revision.Feb 10 2022, 11:28 PM
kerbowa requested review of this revision.Feb 10 2022, 11:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2022, 11:28 PM
arsenm accepted this revision.Feb 11 2022, 7:10 AM
This revision is now accepted and ready to land.Feb 11 2022, 7:10 AM
This revision was automatically updated to reflect the committed changes.