diff options
author | Valentin Clement <clementval@gmail.com> | 2022-09-08 10:15:36 +0200 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2022-09-08 10:15:54 +0200 |
commit | 273b3350d2700b7f2a4e367594bb4ba12e0b8e8e (patch) | |
tree | cac49acbe742b580529cac170f36dfd185c40d5d /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 86271798e51a7866dd2af44e0ee183d1331089e6 (diff) | |
download | llvm-273b3350d2700b7f2a4e367594bb4ba12e0b8e8e.zip llvm-273b3350d2700b7f2a4e367594bb4ba12e0b8e8e.tar.gz llvm-273b3350d2700b7f2a4e367594bb4ba12e0b8e8e.tar.bz2 |
[flang] Deallocate intent(out) allocatables
From Fortran 2018 standard 9.7.3.2 point 6:
When a procedure is invoked, any allocated allocatable object that is an actual
argument corresponding to an INTENT (OUT) allocatable dummy argument is
deallocated; any allocated allocatable object that is a subobject of an actual
argument corresponding to an INTENT (OUT) dummy argument is deallocated.
Deallocation is done on the callee side. For BIND(C) procedure, the deallocation
is also done on the caller side.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D133348
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions