diff options
author | Eugene Epshteyn <eepshteyn@nvidia.com> | 2025-09-30 14:40:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-30 14:40:35 -0400 |
commit | 4064c0eab46e34fd07dbca4b2f665582f4528afb (patch) | |
tree | 96578311083592e5e3515be4408deecbd640b968 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 280abaf9da0121011863ad095991c7d95fc504ae (diff) | |
download | llvm-4064c0eab46e34fd07dbca4b2f665582f4528afb.zip llvm-4064c0eab46e34fd07dbca4b2f665582f4528afb.tar.gz llvm-4064c0eab46e34fd07dbca4b2f665582f4528afb.tar.bz2 |
[flang] Implemented a warning about contiguity of compile time constant values (#161084)
Implemented `common::UsageWarning::ConstantIsContiguous` to warn about
the
following case:
```
integer, parameter :: num = 3
integer, parameter :: arr(num)=[(i, i=1,num)]
logical, parameter :: result=is_contiguous(arr(num:1:-1))
end
```
Here, while array section is discontiguous, `arr` is a compile time
constant,
so array section created at compile time will end up being contiguous
and
`result` will be "true". If `arr` wasn't a constant, the result at
runtime
would have been "false".
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions