[flang] Add lowering TODO for separate module procedures
authorValentin Clement <clementval@gmail.com>
Thu, 23 Jun 2022 12:57:24 +0000 (14:57 +0200)
committerValentin Clement <clementval@gmail.com>
Thu, 23 Jun 2022 12:57:58 +0000 (14:57 +0200)
commitab89c132b547951945788fc2a0969cf64b0df4cd
tree0766cf4e20c5b42dd2087beb7a6511717ff63351
parentda34966a5a5fea47e3381707f26b3c24a6973569
[flang] Add lowering TODO for separate module procedures

MODULE FUNCTION and MODULE SUBROUTINE currently cause lowering crash:
"symbol is not mapped to any IR value" because special care is needed
to handle their interface.

Add a TODO for now.

Example of program that crashed and will hit the TODO:

```
module mod
  interface
    module subroutine sub
    end subroutine
  end interface
contains
  module subroutine sub
    x = 42
  end subroutine
end module
```

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D128412

Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/lib/Lower/Bridge.cpp