[flang-commits] [PATCH] D127786: [flang][runtime] Signal END from character input
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Jun 15 14:12:58 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8ef107538106: [flang][runtime] Signal END from character input (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127786/new/
https://reviews.llvm.org/D127786
Files:
flang/runtime/descriptor-io.h
flang/runtime/edit-input.cpp
Index: flang/runtime/edit-input.cpp
===================================================================
--- flang/runtime/edit-input.cpp
+++ flang/runtime/edit-input.cpp
@@ -693,9 +693,6 @@
return false;
}
const ConnectionState &connection{io.GetConnectionState()};
- if (connection.IsAtEOF()) {
- return false;
- }
std::size_t remaining{length};
if (edit.width && *edit.width > 0) {
remaining = *edit.width;
Index: flang/runtime/descriptor-io.h
===================================================================
--- flang/runtime/descriptor-io.h
+++ flang/runtime/descriptor-io.h
@@ -176,7 +176,7 @@
if (!EditCharacterOutput(io, *edit, x, length)) {
return false;
}
- } else {
+ } else { // input
if (edit->descriptor != DataEdit::ListDirectedNullValue) {
if (EditCharacterInput(io, *edit, x, length)) {
anyInput = true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127786.437332.patch
Type: text/x-patch
Size: 922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220615/4756ea33/attachment.bin>
More information about the flang-commits
mailing list