[flang-commits] [flang] [flang] Match the type of the element size in the box in creating fir.box_elesize (PR #100512)
via flang-commits
flang-commits at lists.llvm.org
Thu Jul 25 00:19:33 PDT 2024
https://github.com/jeanPerier requested changes to this pull request.
Thanks for finding this bug.
I would rather the bug to be fixed where it is in codegen.cpp: the GEP + load should use the descriptor type and a cast should be inserted. That way, there is no need to assume the type inside the descriptor in lowering, and future creation of fir.box_elesize will be safe.
https://github.com/llvm/llvm-project/pull/100512
More information about the flang-commits
mailing list