-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
df8c78c
commit 88ac741
Showing
2 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters