Files
clang-p2996/flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
jeanPerier 28a0ad09c1 [flang][hlfir] fix issue 118922 (#119219)
hlfir.elemental codegen optimize-out the final as_expr copy for temps
local to its body, but sometimes, clean-up may have been emitted for
this temp, and the code did not handle that.
This caused #118922 and @113843.

Only elide the copy if the as_expr is the last op.
2024-12-10 15:00:32 +01:00

46 KiB