diff options
author | Valentin Clement <clementval@gmail.com> | 2022-04-08 21:16:08 +0200 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2022-04-08 21:16:55 +0200 |
commit | ab8e1e6e5ace6ba9b7c44caa2409bf8e33cdee96 (patch) | |
tree | 771a06a7d5f7febc1f66c63b7fd1a5d7c29b82dc /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 8aa1490513f111afd407d87c3f07d26f65c8a686 (diff) | |
download | llvm-ab8e1e6e5ace6ba9b7c44caa2409bf8e33cdee96.zip llvm-ab8e1e6e5ace6ba9b7c44caa2409bf8e33cdee96.tar.gz llvm-ab8e1e6e5ace6ba9b7c44caa2409bf8e33cdee96.tar.bz2 |
[flang] Do not fold fir.box_addr when it has a slice
This patch avoids to fold `fir.box_addr` when the defining `fir.embox` op
has a slice. If the op is folded the slice information are lost.
This kind of problem occurred with code like:
```
call check(y(half+1:))
```
where `y` is an array.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D123392
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions