[all-commits] [llvm/llvm-project] 61687f: [flang] Fix buffering read->write transition

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


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

  Changed paths:
    M flang/runtime/buffer.h
    M flang/runtime/io-api.cpp

  Log Message:
  -----------
  [flang] Fix buffering read->write transition

The buffer needs to be Reset() after a Flush(), since the
Flush() can be a no-op after a read->write transition.
And record numbers are 1-based, not 0-based.
This fixes a bug with rewrites of records that have been
recently read.

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




More information about the All-commits mailing list