aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2025-06-10 14:41:14 +0200
committerGitHub <noreply@github.com>2025-06-10 14:41:14 +0200
commit59e4d0b34d6737c40a9d7cf4c5dd9dcaa651dd74 (patch)
tree04a97e5d17c594c1b757526b1c67d8953797d9c2 /flang/lib/Frontend/CompilerInvocation.cpp
parent6582d7d348c14b0e8be98d651b5d6e49d20beedb (diff)
downloadllvm-59e4d0b34d6737c40a9d7cf4c5dd9dcaa651dd74.zip
llvm-59e4d0b34d6737c40a9d7cf4c5dd9dcaa651dd74.tar.gz
llvm-59e4d0b34d6737c40a9d7cf4c5dd9dcaa651dd74.tar.bz2
[flang][hlfir] ensure hlfir.declare result box attributes are consistent (#143137)
Prevent hlfir.declare output to be fir.box/class values with the heap/pointer attribute to ensure the runtime descriptor attributes are in line with the Fortran attributes for the entities being declared (only fir.ref<box/class> can be ALLOCATABLE/POINTERS). This fixes a bug where an associated entity inside a SELECT TYPE was being unexpectedly reallocated inside assign runtime because the selector was allocatable and this attribute was not properly removed when creating the descriptor for the associated entity (that does not inherit the ALLOCATABLE/POINTER attribute according to Fortran 2023 section 11.1.3.3).
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions