[all-commits] [llvm/llvm-project] e24f0a: [flang] Allow record advancement in external forma...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Sep 30 17:17:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e24f0ac7a389fcb5c2f5295e717d9f7d3fcd4cea
      https://github.com/llvm/llvm-project/commit/e24f0ac7a389fcb5c2f5295e717d9f7d3fcd4cea
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

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

  Log Message:
  -----------
  [flang] Allow record advancement in external formatted sequential READ

The '/' control edit descriptor causes a runtime crash for an
external formatted sequential READ because the AdvanceRecord()
member function for external units implemented only the tasks
to finish reading the current record.  Split those out into
a new FinishReadingRecord() member function, call that instead
from EndIoStatement(), and change AdvanceRecord() to both
finish reading the current record and to begin reading the next
one.

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




More information about the All-commits mailing list