aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorJean Perier <jperier@nvidia.com>2023-04-17 07:46:13 +0200
committerJean Perier <jperier@nvidia.com>2023-04-17 07:46:29 +0200
commit88ac7414d50b52b202a547e04a9f8bac4c797fa3 (patch)
treecb6839f9ea1247f4de429e7c53f217eeb5d2ff63 /llvm/lib/CodeGen/MachineSink.cpp
parentdf8c78c5b5c0c41de7c5e274406c2e292c3f0259 (diff)
downloadllvm-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