This is an archive of the discontinued LLVM Phabricator instance.

[flang] Relax the check for polymorphic pointer in storage_size intrinsic
ClosedPublic

Authored by clementval on Feb 23 2023, 7:15 AM.

Details

Summary

The runtime check was a too strong as the standard says.

If it is polymorphic it shall not be an undefined pointer.

The check was checking if the pointer was associated.
Remove the check as other compilers do.

Depends on D144643

Diff Detail

Event Timeline

clementval created this revision.Feb 23 2023, 7:15 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 23 2023, 7:15 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Feb 23 2023, 7:15 AM
PeteSteinfeld accepted this revision.Feb 23 2023, 7:58 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Feb 23 2023, 7:58 AM