diff options
author | Jean Perier <jperier@nvidia.com> | 2023-04-17 07:46:13 +0200 |
---|---|---|
committer | Jean Perier <jperier@nvidia.com> | 2023-04-17 07:46:29 +0200 |
commit | 88ac7414d50b52b202a547e04a9f8bac4c797fa3 (patch) | |
tree | cb6839f9ea1247f4de429e7c53f217eeb5d2ff63 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | df8c78c5b5c0c41de7c5e274406c2e292c3f0259 (diff) | |
download | llvm-88ac7414d50b52b202a547e04a9f8bac4c797fa3.zip llvm-88ac7414d50b52b202a547e04a9f8bac4c797fa3.tar.gz llvm-88ac7414d50b52b202a547e04a9f8bac4c797fa3.tar.bz2 |
[flang][hlfir] Fix hlfir.set_length codegen
The bufferization pass was propagating the raw alloca storage
(which may not allow to later retrieve the length) instead of
the hlfir variable value (which is guaranteed to hold the
character length).
Fix this and makes packageBufferizedExpr "storage" argument and
getBufferizedExprStorage return an hlfir::Entity to avoid similar
error in the future (the caller of packageBufferizedExpr will have
to think a bit when adding the explicit hlfir::Entity{} cast).
Differential Revision: https://reviews.llvm.org/D148307
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions