This is an archive of the discontinued LLVM Phabricator instance.

[flang] Always create HostAssocDetails for host object symbols with UseDetails
ClosedPublic

Authored by jeanPerier on Aug 9 2021, 4:41 AM.

Details

Summary

https://reviews.llvm.org/D105464 did not correctly cover the case
where the symbol from the host procedure is use associated. Outside
of the mis-parsed ArrayRef case, flang was also creating a symbol with
HostAssociated details inside the internal procedure (pointing to the
use associated symbol in the host). That is what lowering expects.
This patch ensures the same logic is applied in the mis-parsed array-ref name
resolution (and the pointer target name resolution).

Diff Detail

Event Timeline

jeanPerier created this revision.Aug 9 2021, 4:41 AM
jeanPerier requested review of this revision.Aug 9 2021, 4:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 4:41 AM
PeteSteinfeld accepted this revision.Aug 9 2021, 6:12 AM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Aug 9 2021, 6:12 AM