[llvm-branch-commits] [flang][runtime] Added self-printing for InternalUnit. (PR #85181)

Peter Klausler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Mar 14 08:49:10 PDT 2024


================
@@ -119,6 +120,9 @@ template <Direction DIR> void InternalIoStatementState<DIR>::BackspaceRecord() {
 }
 
 template <Direction DIR> int InternalIoStatementState<DIR>::EndIoStatement() {
+  if constexpr (DIR == Direction::Output) {
----------------
klausler wrote:

If it is possible for the buffer flush to raise an error that the program can catch via `ERR=` or `IOSTAT=`, do this in `CompleteOperation` instead.

https://github.com/llvm/llvm-project/pull/85181


More information about the llvm-branch-commits mailing list