[all-commits] [llvm/llvm-project] a15ebe: [flang] fix procedure fir.box_addr identification ...
jeanPerier via All-commits
all-commits at lists.llvm.org
Thu Jan 25 01:00:17 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a15ebe0246c75faedfe9cb2fbc6ea7b62e265026
https://github.com/llvm/llvm-project/commit/a15ebe0246c75faedfe9cb2fbc6ea7b62e265026
Author: jeanPerier <jperier at nvidia.com>
Date: 2024-01-25 (Thu, 25 Jan 2024)
Changed paths:
M flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
M flang/test/Fir/boxproc-2.fir
Log Message:
-----------
[flang] fix procedure fir.box_addr identification in boxed-procedure (#79290)
The pass was mistakenly identifying a fir.box_addr on a
fir.box/fir.class of a derived type with procedure pointer components as
being a fir.box_addr on a procedure.
Simply check if the input type is a fir.box_proc or function type (if
input already rewritten) and insert convert only in this case.
This caused "invalid fir.convert" internal error.
More information about the All-commits
mailing list