This is an archive of the discontinued LLVM Phabricator instance.

[flang] Avoid cascading error in subscript triplet
ClosedPublic

Authored by tskeith on Aug 10 2020, 11:00 AM.

Details

Summary

If a bound of a subscript triplet is present but fails to analyze
due to an error, return nullopt rather than returning a Triplet with
that bound missing. This is so we can distinguish an absent bound from
an erroneous one and avoid spurious errors.

Diff Detail

Event Timeline

tskeith created this revision.Aug 10 2020, 11:00 AM
Herald added a project: Restricted Project. · View Herald Transcript
tskeith requested review of this revision.Aug 10 2020, 11:00 AM
klausler accepted this revision.Aug 10 2020, 11:35 AM
This revision is now accepted and ready to land.Aug 10 2020, 11:35 AM
This revision was landed with ongoing or failed builds.Aug 10 2020, 11:44 AM
This revision was automatically updated to reflect the committed changes.