[flang-commits] [flang] [flang] Centralize automatic deallocation code in lowering (PR #67003)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Thu Sep 21 07:54:13 PDT 2023
================
@@ -461,10 +461,13 @@ fir::ExtendedValue Fortran::lower::genCallOpAndResult(
allocatedResult->match(
[&](const fir::MutableBoxValue &box) {
if (box.isAllocatable() && !cleanupWithDestroy) {
- // 9.7.3.2 point 4. Finalize allocatables.
+ // 9.7.3.2 point 4. Deallocate allocatable results. Note that
+ // finalization was done independently by calling
+ // genDerivedTypeDestroy above and is not triggered by this inline
+ // dealloction.
----------------
vzakhari wrote:
typo
```suggestion
// deallocation.
```
https://github.com/llvm/llvm-project/pull/67003
More information about the flang-commits
mailing list