This is an archive of the discontinued LLVM Phabricator instance.

[flang] Prevent lowering crash by properly updating symbol pointer
ClosedPublic

Authored by klausler on Jul 3 2023, 10:33 AM.

Details

Summary

Kind of an edge case. When a MODULE FUNCTION or SUBROUTINE
interface is defined by a MODULE PROCEDURE in the same program
unit, ensure that the symbol table pointer in the parse tree is
updated to point to the SubprogramDetails symbol for the
interface, and not left pointing to what should soon become
a dead SubprogramNameDetails symbol.

Diff Detail

Event Timeline

klausler created this revision.Jul 3 2023, 10:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2023, 10:33 AM
klausler requested review of this revision.Jul 3 2023, 10:33 AM
vzakhari accepted this revision.Jul 3 2023, 11:45 AM

Thank you!

This revision is now accepted and ready to land.Jul 3 2023, 11:45 AM
This revision was landed with ongoing or failed builds.Jul 3 2023, 12:11 PM
This revision was automatically updated to reflect the committed changes.