This is an archive of the discontinued LLVM Phabricator instance.

[flang] Better error recovery for bad submodules
ClosedPublic

Authored by klausler on Jun 28 2022, 2:29 PM.

Details

Summary

When a submodule appears in a source file and the compiler can't find the
named ancestor module (and submodule, if one appears), crashes may occur
later due to the absence of a scope. For better resilience, a dummy
ancestral scope should be generated within which the submodule scope
can be created.

Diff Detail

Event Timeline

klausler created this revision.Jun 28 2022, 2:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 2:29 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 28 2022, 2:29 PM
jeanPerier accepted this revision.Jun 29 2022, 4:44 AM

Looks good

This revision is now accepted and ready to land.Jun 29 2022, 4:44 AM
This revision was automatically updated to reflect the committed changes.