This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix a crash when cosubscript list is empty
ClosedPublic

Authored by PeteSteinfeld on Jul 8 2020, 10:06 AM.

Details

Summary

When there are errors in the evaluation of every cosubscript expression in a
coindexed object, the compiler would crash. I fixed this by just checking to
see if there were errors in the evaluation of the cosubscripts before
constructing the DataRef for the coindexed object.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Jul 8 2020, 10:06 AM
Herald added a project: Restricted Project. · View Herald Transcript
PeteSteinfeld added a project: Restricted Project.Jul 8 2020, 10:07 AM
tskeith accepted this revision.Jul 8 2020, 10:09 AM
This revision is now accepted and ready to land.Jul 8 2020, 10:09 AM
This revision was automatically updated to reflect the committed changes.