[all-commits] [llvm/llvm-project] a94d94: [flang] Fix actions at end of output record

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Oct 1 17:18:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a94d943f1a3f42efede7e908bb250c84f9f442b1
      https://github.com/llvm/llvm-project/commit/a94d943f1a3f42efede7e908bb250c84f9f442b1
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-10-01 (Thu, 01 Oct 2020)

  Changed paths:
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h
    M flang/runtime/unit.cpp

  Log Message:
  -----------
  [flang] Fix actions at end of output record

It turns out that unformatted fixed-size output records
do need to be padded out if short, in order to avoid a
spurious EOF crash on a short record at the end of the file.
While here in AdvanceRecord(), move the unformatted
variable-length record header/footer writing code to here
from EndIoStatement().

Differential revision: https://reviews.llvm.org/D88685




More information about the All-commits mailing list