[flang-commits] [PATCH] D128389: [flang][runtime] Respect PAD='NO' on READ/WRITE
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Jun 23 09:50:46 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1650fb8a53ff: [flang][runtime] Respect PAD='NO' on READ/WRITE (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128389/new/
https://reviews.llvm.org/D128389
Files:
flang/runtime/io-stmt.cpp
Index: flang/runtime/io-stmt.cpp
===================================================================
--- flang/runtime/io-stmt.cpp
+++ flang/runtime/io-stmt.cpp
@@ -677,7 +677,8 @@
if (auto length{connection.EffectiveRecordLength()}) {
if (connection.positionInRecord >= *length) {
IoErrorHandler &handler{GetIoErrorHandler()};
- if (mutableModes().nonAdvancing) {
+ const auto &modes{mutableModes()};
+ if (modes.nonAdvancing) {
if (connection.access == Access::Stream &&
connection.unterminatedRecord) {
// Reading final unterminated record left by a
@@ -687,10 +688,10 @@
} else {
handler.SignalEor();
}
- } else if (!connection.modes.pad) {
+ } else if (!modes.pad) {
handler.SignalError(IostatRecordReadOverrun);
}
- return connection.modes.pad; // PAD='YES'
+ return modes.pad; // PAD='YES'
}
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128389.439441.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220623/2daf6b73/attachment.bin>
More information about the flang-commits
mailing list