[flang-commits] [flang] [flang] Retain internal and BIND(C) host procedure link in FIR (PR #87796)

via flang-commits flang-commits at lists.llvm.org
Tue Apr 23 07:08:08 PDT 2024


jeanPerier wrote:

> Hi, Your PR breaks compilation of OpenMP Fortran code:
> I observe ICE when flang-new tries to lower MLIR code to LLVM IR.

Thanks, I could reproduce. The OMPFunctionFiltering assumed all function symbol uses are calls/address_of. When processing the host program (in the Fortran sense, not OpenMP) it now erases its internal procedures as if it were a call, and then proceeds to process the erased internal function, hence the segfault.

Working on a fix.

https://github.com/llvm/llvm-project/pull/87796


More information about the flang-commits mailing list