diff options
author | Valentin Clement <clementval@gmail.com> | 2023-02-08 17:55:38 +0100 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2023-02-08 17:56:15 +0100 |
commit | 6a63e21cf4e6a8499d90e2337eb545644646ee31 (patch) | |
tree | 7ecc8050ae0d6e7bf2aeb95380e2156beada537b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | cb19b83baac1a204cb61e7fd7c8f22dac886ce39 (diff) | |
download | llvm-6a63e21cf4e6a8499d90e2337eb545644646ee31.zip llvm-6a63e21cf4e6a8499d90e2337eb545644646ee31.tar.gz llvm-6a63e21cf4e6a8499d90e2337eb545644646ee31.tar.bz2 |
[flang] Fix rank and byte stride in pointer remapping
In some remapping case the rank of the pointer is different
from the target one.
```
program remap
type :: p
integer :: a
end type t
type(p), target :: ta(10) = [ (t(i),i=1,10) ]
class(t), pointer :: p(:,:)
p(1:2,1:5) => ta
end
```
This patch updates the rank and the byte stride to fix such case.
Reviewed By: klausler
Differential Revision: https://reviews.llvm.org/D143566
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions