[all-commits] [llvm/llvm-project] 66ec32: [flang] Fix lowering of optional char proc args
Leandro Lupori via All-commits
all-commits at lists.llvm.org
Mon Mar 6 06:38:30 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 66ec32633207885abc717b271cfb7730674d380e
https://github.com/llvm/llvm-project/commit/66ec32633207885abc717b271cfb7730674d380e
Author: Leandro Lupori <leandro.lupori at linaro.org>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
M flang/include/flang/Optimizer/Builder/FIRBuilder.h
M flang/lib/Lower/ConvertCall.cpp
M flang/lib/Lower/ConvertExpr.cpp
M flang/lib/Optimizer/Builder/FIRBuilder.cpp
A flang/test/Lower/HLFIR/dummy-argument-optional.f90
M flang/test/Lower/dummy-argument-optional.f90
Log Message:
-----------
[flang] Fix lowering of optional char proc args
Optional character function arguments were not being lowered
properly. As they are passed as a tuple, containing the (boxed)
function address and the character length, it is not possible for
fir.absent to handle it directly. Instead, a tuple needs to be
created and filled with an absent function address and a dummy
character length.
Fixes #60225
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D144743
More information about the All-commits
mailing list