diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2023-07-11 09:02:23 -0700 |
---|---|---|
committer | Slava Zakharin <szakharin@nvidia.com> | 2023-07-11 09:40:08 -0700 |
commit | 07593a39a4f67186200df0f874d8dadf5f836797 (patch) | |
tree | 587be37f3b11c249f7372239bbae87a3824a1ed9 /clang/lib/Lex/ModuleMap.cpp | |
parent | 5c428079047b5ef35f6452c6cd2b3fc3d4323a17 (diff) | |
download | llvm-07593a39a4f67186200df0f874d8dadf5f836797.zip llvm-07593a39a4f67186200df0f874d8dadf5f836797.tar.gz llvm-07593a39a4f67186200df0f874d8dadf5f836797.tar.bz2 |
[flang][hlfir] Fixed NULL() handling in structure constructor.
When an initializer value is missing for an allocatable component
in a structure constructor, the RHS is NULL() expression.
We should just skip this part of the initializer, since the component
must become unallocated (as it is from the initialization).
Runtime detected rank mismatch when we tried to pass NULL() box
RHS for assigning it to the unallocated component of rank 1, 2, etc.
Reviewed By: tblah
Differential Revision: https://reviews.llvm.org/D154906
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions