This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir]: fix elemental subroutine calls
ClosedPublic

Authored by tblah on Jul 3 2023, 6:15 AM.

Details

Summary

genElementalCall can return a null option when lowering elemental
subroutine calls (as there is no return value). Therefore
std::option::value should not be used as it will cause an
assertion failure.

This fixes uses of the mvbits intrinsic with array arguments, as used in
the gfortran test suite.

Diff Detail

Event Timeline

tblah created this revision.Jul 3 2023, 6:15 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 3 2023, 6:15 AM
tblah requested review of this revision.Jul 3 2023, 6:15 AM
vzakhari accepted this revision.Jul 3 2023, 8:56 AM

LGTM

This revision is now accepted and ready to land.Jul 3 2023, 8:56 AM
jeanPerier accepted this revision.Jul 3 2023, 11:56 PM

Thanks

This revision was automatically updated to reflect the committed changes.