diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2024-01-02 09:44:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 09:44:16 -0800 |
commit | 8f3357b75b6f0093e3e5df8adb140c9dad24f881 (patch) | |
tree | e389097fa9baaf80ee53e123304dbd5e0e2c8447 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 4c1f488b78237e3388ac44d587b7b2e0c1d772b9 (diff) | |
download | llvm-8f3357b75b6f0093e3e5df8adb140c9dad24f881.zip llvm-8f3357b75b6f0093e3e5df8adb140c9dad24f881.tar.gz llvm-8f3357b75b6f0093e3e5df8adb140c9dad24f881.tar.bz2 |
[flang][runtime] Don't use -1 in I/O API for "default unit" (#76642)
The I/O runtime's API allows -1 to be passed for a unit number in a
READ, WRITE, or PRINT statement, where it gets replaced by 5 or 6 as
appropriate. This turns out to have been a bad idea, as it prevents the
I/O runtime from detecting and reporting a program's invalid attempt to
use -1 as an I/O unit number. So just pass 5 or 6 as appropriate.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions