This is an archive of the discontinued LLVM Phabricator instance.

[flang] Ensure a characterized ENTRY in a PURE subprogram is also marked PURE
ClosedPublic

Authored by klausler on Feb 11 2022, 10:48 AM.

Details

Summary

ENTRY point symbols aren't marked PURE in the symbol table, but must
instead inherit the attribute from their containing subprograms.
There's a predicate in semantics that does this, but it wasn't being
used in the context of actual procedure argument characterization.

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2022, 10:48 AM
klausler requested review of this revision.Feb 11 2022, 10:48 AM
mleair accepted this revision.Feb 14 2022, 11:12 AM

LGTM

This revision is now accepted and ready to land.Feb 14 2022, 11:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 3:34 PM