[flang-commits] [flang] [Flang] Support passing a function that returns procedure pointer as actual corresponding to a procedure dummy. (PR #80891)
Daniel Chen via flang-commits
flang-commits at lists.llvm.org
Wed Feb 7 09:15:23 PST 2024
================
@@ -915,8 +915,10 @@ static PreparedDummyArgument preparePresentUserCallActualArgument(
// Handle procedure arguments (procedure pointers should go through
// prepareProcedurePointerActualArgument).
if (hlfir::isFortranProcedureValue(dummyType)) {
- // Procedure pointer actual to procedure dummy.
- if (actual.isProcedurePointer()) {
+ // Procedure pointer or function returns procedure pointer actual to
+ // procedure dummy.
----------------
DanielCChen wrote:
Thanks for the review! Yeah, your suggestion makes more sense to me. Will update.
https://github.com/llvm/llvm-project/pull/80891
More information about the flang-commits
mailing list