This is an archive of the discontinued LLVM Phabricator instance.

[flang] Retrieve the correct scope when lowering SELECT TYPE
ClosedPublic

Authored by clementval on Feb 15 2023, 1:05 PM.

Details

Summary

Scope to retrieve the associating entity is needed to map the
symbol to the IR value. The scope can be found with a source
information. For the type case in SELECT TYPE construct, the source
information is on the Statement<TypeCase>. This patch updates
the lowering so the scopes for each type guards is retrieved
before the processing.

Diff Detail

Event Timeline

clementval created this revision.Feb 15 2023, 1:05 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 15 2023, 1:05 PM
clementval requested review of this revision.Feb 15 2023, 1:05 PM
PeteSteinfeld accepted this revision.Feb 15 2023, 3:23 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Feb 15 2023, 3:23 PM
vdonaldson accepted this revision.Feb 15 2023, 4:56 PM

So you need to drop down a scope level - looks ok to me.