This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix call to CHECK() on erroneous subroutine declaration
ClosedPublic

Authored by PeteSteinfeld on Oct 20 2020, 3:09 PM.

Details

Summary

When processing declarations in resolve-names.cpp, we were returning a
symbol that had SubprogramName details to PushSubprogramScope(), which
expects a symbol with Subprogram details.

I adjusted the code and added a test.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Oct 20 2020, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2020, 3:09 PM
PeteSteinfeld requested review of this revision.Oct 20 2020, 3:09 PM
PeteSteinfeld added a project: Restricted Project.Oct 20 2020, 3:10 PM
tskeith accepted this revision.Oct 20 2020, 3:41 PM
This revision is now accepted and ready to land.Oct 20 2020, 3:41 PM