This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Insert casts in hlfir.associate rewrites
ClosedPublic

Authored by jeanPerier on Feb 22 2023, 5:23 AM.

Details

Summary

When the associated expression came from a moved variable, the
type of the moved variable may not exactly match the hlfir.associate
result and cannot be re-used directly. Insert fir.convert/fir.box_addr
as needed.

Diff Detail

Event Timeline

jeanPerier created this revision.Feb 22 2023, 5:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 5:23 AM
jeanPerier requested review of this revision.Feb 22 2023, 5:23 AM
This revision is now accepted and ready to land.Feb 22 2023, 6:06 AM