aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2022-09-08 10:15:36 +0200
committerValentin Clement <clementval@gmail.com>2022-09-08 10:15:54 +0200
commit273b3350d2700b7f2a4e367594bb4ba12e0b8e8e (patch)
treecac49acbe742b580529cac170f36dfd185c40d5d /llvm/lib/Object/MachOObjectFile.cpp
parent86271798e51a7866dd2af44e0ee183d1331089e6 (diff)
downloadllvm-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