diff options
| author | jeanPerier <jperier@nvidia.com> | 2024-02-07 10:50:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 10:50:12 +0100 |
| commit | 0f439f374f9cec73466c5166b9a8764214a74069 (patch) | |
| tree | 703da93ecab7f17ca57f6ad868ae681dd5b9b882 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | e1d564ac130fb6ec14d1e237a123373d64249e55 (diff) | |
[flang] Fix hlfir.as_expr codegen for polymorphic entities (#80824)
https://github.com/llvm/llvm-project/pull/80683 revealed that
hlfir.as_expr was propagating the temporary buffer for polymorphic
values as an allocatable while codegen later expects to be working with
fir.box/fir.class but not fir.ref<box/class> when processing the
operations using the hlfir.as_expr result.
Dereference the temporary allocatable as soon as it is created.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
