aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2023-01-12 11:12:00 +0100
committerValentin Clement <clementval@gmail.com>2023-01-12 11:12:30 +0100
commit01e8e50ce397dcb08e7dfadab93a53ae31174c67 (patch)
tree7f34702f47b2fee8dce14912a1f50238f44801cb /llvm/tools/llvm-readobj/llvm-readobj.cpp
parent12ece76815ab330f8f33707efd7c93735dd9c178 (diff)
downloadllvm-01e8e50ce397dcb08e7dfadab93a53ae31174c67.zip
llvm-01e8e50ce397dcb08e7dfadab93a53ae31174c67.tar.gz
llvm-01e8e50ce397dcb08e7dfadab93a53ae31174c67.tar.bz2
[flang] Restore declared type when deallocating polymorphic entities
As mentioned in section 7.3.2.3 note 7, The dynamic type of an unallocated allocatable object or a disassociated pointer is the same as its declared type. This patch adds two function to the runtime: - `PointerDeallocatePolymorphic` - `AllocatableDeallocatePolymorphic` These two functions take a DerivedTypeDesc pointer of the declared type. The lowering is updated accordingly to call these functions for polymorphic and unlimited polyrmophic entities. For unlimited polymorphic entities, the dynamic type is set to nullptr when the entity is on an unallocated or disassociated state. Reviewed By: PeteSteinfeld, klausler Differential Revision: https://reviews.llvm.org/D141519
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions