[flang] Fix crash with alternate returns in modules
authorPete Steinfeld <psteinfeld@nvidia.com>
Thu, 18 Jun 2020 14:05:08 +0000 (07:05 -0700)
committerPete Steinfeld <psteinfeld@nvidia.com>
Thu, 18 Jun 2020 15:56:12 +0000 (08:56 -0700)
commit3ed2909feb34e5b68c6272def7d445a7ca4c5c6f
tree5681967df1f196edfd609a0ba1e235974eae9533
parent2d865ccbd8c47fe94af04a6cffd02c45a24e2ffb
[flang] Fix crash with alternate returns in modules

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.

Reviewers: tskeith, klausler, DavidTruby

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82096
flang/lib/Semantics/mod-file.cpp
flang/test/Semantics/modfile04.f90