This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash with alternate returns in modules
ClosedPublic

Authored by PeteSteinfeld on Jun 18 2020, 7:08 AM.

Details

Summary

We weren't handling the case of subroutines with alternate returns that
are contained in modules. I changed the code to add an * as the name
of the parameter when creating the .mod file.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Jun 18 2020, 7:08 AM
Herald added a project: Restricted Project. · View Herald Transcript
PeteSteinfeld added a project: Restricted Project.Jun 18 2020, 7:23 AM
tskeith accepted this revision.Jun 18 2020, 8:20 AM
tskeith added inline comments.
flang/lib/Semantics/mod-file.cpp
833

DEREF is redundant after checking dummyArg is not null.

This revision is now accepted and ready to land.Jun 18 2020, 8:20 AM
This revision was automatically updated to reflect the committed changes.
PeteSteinfeld marked an inline comment as done.