This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix CONTIGUOUS attribute checking
ClosedPublic

Authored by klausler on Mar 21 2023, 3:19 PM.

Details

Summary

A CONTIGUOUS entity must be an array pointer, assumed-shape dummy array,
or assumed-rank dummy argument (C752, C830). As currently implemented,
f18 only implements the array requirement if the entity is a pointer.
Combine these checks and start issuing citations to scalars.

Diff Detail

Event Timeline

klausler created this revision.Mar 21 2023, 3:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 3:19 PM
klausler requested review of this revision.Mar 21 2023, 3:19 PM
vdonaldson accepted this revision.Mar 21 2023, 7:59 PM
This revision is now accepted and ready to land.Mar 21 2023, 7:59 PM
This revision was automatically updated to reflect the committed changes.