In some cases, the base type is already a fir.box type. This patch updates
the code to set the result box type to fir.box<T>, where T is the type
of the allocated temp.
This was reported in https://github.com/llvm/llvm-project/issues/59342
Paths
| Differential D139401
[flang] Set correct box type when emboxing temporary in array value copy pass ClosedPublic Authored by clementval on Dec 6 2022, 1:07 AM.
Details Summary In some cases, the base type is already a fir.box type. This patch updates This was reported in https://github.com/llvm/llvm-project/issues/59342
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 6 2022, 1:07 AM This revision is now accepted and ready to land.Dec 6 2022, 1:56 AM Closed by commit rG11760b3a27ea: [flang] Set correct box type when emboxing temporary in array value copy pass (authored by clementval). · Explain WhyDec 6 2022, 6:02 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 480376 flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp
flang/test/Fir/array-value-copy-3.fir
flang/test/Fir/array-value-copy-4.fir
|