diff options
author | jeanPerier <jperier@nvidia.com> | 2024-02-15 09:04:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 09:04:42 +0100 |
commit | 5f6e0f35f936495563b5758a7ff9d4417a9f651b (patch) | |
tree | 5291de0236d0d8f1ebf7a071d79bb7dcdafaa768 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 28d4385020920ec5f54ef3de4e69f3649d417d81 (diff) | |
download | llvm-5f6e0f35f936495563b5758a7ff9d4417a9f651b.zip llvm-5f6e0f35f936495563b5758a7ff9d4417a9f651b.tar.gz llvm-5f6e0f35f936495563b5758a7ff9d4417a9f651b.tar.bz2 |
[flang][runtime] Destroy nested allocatable components (#81117)
The runtime was currently only deallocating the direct allocatable
components, which caused leaks when there are allocatable components
nested in the direct components.
Update Destroy to recursively destroy components.
Also call Destroy from Assign to deallocate nested allocatable
components before doing the assignment as required by F2018 9.7.3.2
point 7.
This lack of deallocation was visible if the nested components had user
defined assignment "observing" the allocation state.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions