This is an archive of the discontinued LLVM Phabricator instance.

[flang] Avoid crash in error recovery
ClosedPublic

Authored by klausler on Jun 26 2023, 11:01 AM.

Details

Summary

When a PASS() clause names a nonexistent dummy argument, don't crash
later in expression semantics.
Fixes https://github.com/llvm/llvm-project/issues/63487.

Diff Detail

Event Timeline

klausler created this revision.Jun 26 2023, 11:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 11:01 AM
klausler requested review of this revision.Jun 26 2023, 11:01 AM

The new test that you added doesn't trigger the crash in the original test.

klausler updated this revision to Diff 534785.Jun 26 2023, 4:42 PM

Fix new test.

It looks like something went wrong in your update. These latest changes don't seem related to the description of the patch.

klausler updated this revision to Diff 535033.Jun 27 2023, 9:54 AM

Update with the right patch.

PeteSteinfeld accepted this revision.Jun 27 2023, 10:48 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 27 2023, 10:48 AM
This revision was automatically updated to reflect the committed changes.