This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make sure dynamic extents and length are rounded to 0 if negative
ClosedPublic

Authored by clementval on Aug 18 2022, 8:24 AM.

Details

Summary

Function returning CHARACTER with adjustable length or dynamic arrays
can have negative length or extents passed to them. This patch makes sure
any negative inputs is rounded to 0.

Diff Detail

Event Timeline

clementval created this revision.Aug 18 2022, 8:24 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 18 2022, 8:24 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Aug 18 2022, 8:24 AM
vdonaldson accepted this revision.Aug 18 2022, 9:57 AM
This revision is now accepted and ready to land.Aug 18 2022, 9:57 AM