diff options
| author | jeanPerier <jperier@nvidia.com> | 2025-06-25 09:41:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-25 09:41:33 +0200 |
| commit | aeaf319b8c2207eb747079529f28d44d54bf1fd5 (patch) | |
| tree | 8bbc9630b562aa63f4a6edb211081845476b8ba4 /lldb/packages/Python/lldbsuite/test/lldbgdbclient.py | |
| parent | 31545ca5f467fb0860ed3d09313451d547e41f5d (diff) | |
| download | llvm-aeaf319b8c2207eb747079529f28d44d54bf1fd5.zip llvm-aeaf319b8c2207eb747079529f28d44d54bf1fd5.tar.gz llvm-aeaf319b8c2207eb747079529f28d44d54bf1fd5.tar.bz2 | |
[flang] avoid useless rebox of polymorphic scalars (#145507)
Do not create new descriptor for polymorphic scalars when lowering
hlfir.declare.
hlfir.declare of box/class is lowered to a fir.rebox to ensure that
local lower bounds and descriptor attributes (Pointer/Allocatable/None)
are properly set-up in the descriptor associated to the symbol.
For polymorphic scalar, this created a useless temporary descriptor.
This was breaking invalid code #145256 that violates OPTIONAL usage
rules. I am not fixing it primarily to support this invalid code, but
rather because it is dumb to create a useless fir.rebox.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbgdbclient.py')
0 files changed, 0 insertions, 0 deletions
