diff options
author | Peter Klausler <pklausler@nvidia.com> | 2025-01-27 08:56:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-27 08:56:58 -0800 |
commit | ec6b2c63d93d8f8edeafcc7330d0b2349463d73d (patch) | |
tree | 9cc70ad0b4618e9ae12059e8a244966a4fc88c64 /libcxx/src | |
parent | f5ddb1012de1c7c7c958aa288932caead9607b07 (diff) | |
download | llvm-ec6b2c63d93d8f8edeafcc7330d0b2349463d73d.zip llvm-ec6b2c63d93d8f8edeafcc7330d0b2349463d73d.tar.gz llvm-ec6b2c63d93d8f8edeafcc7330d0b2349463d73d.tar.bz2 |
[flang] Fold character array constructor with unknown length (#123983)
When a character array constructor does not have an explicit type with a
constant length, the compiler can still fold it if all of its elements
are constants. These array constructors will have been wrapped up in the
internal %SET_LENGTH operation, which will determine the final length of
the folded value, so use the maximum length of the constant elements as
the length of the folded array constructor.
Fixes https://github.com/llvm/llvm-project/issues/123766.
Diffstat (limited to 'libcxx/src')
0 files changed, 0 insertions, 0 deletions