diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2023-07-19 09:10:54 -0700 |
---|---|---|
committer | Slava Zakharin <szakharin@nvidia.com> | 2023-07-19 14:38:31 -0700 |
commit | b63698727d84a84f2163386aa3209ab28cc73c7e (patch) | |
tree | 5bf6b32ec0a17998d1dd07ea994f099b3fa1d4b0 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 42a024fad9fca3fbe37afd55681e84dc60dd1abe (diff) | |
download | llvm-b63698727d84a84f2163386aa3209ab28cc73c7e.zip llvm-b63698727d84a84f2163386aa3209ab28cc73c7e.tar.gz llvm-b63698727d84a84f2163386aa3209ab28cc73c7e.tar.bz2 |
[flang][hlfir] Fixed finalization in hlfir.assign codegen.
When hlfir.assign is lowered into simple load/store,
we may still need to finalize the LHS.
The patch passes `needFinalization` to `genScalarAssignment`
for LHS of any derived type, so some `Destroy` calls
might be redundant. They can be removed later by propagating/deducing
IsFinalizable information about the LHS type.
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D155664
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions