HomePhabricator

[flang] Fix buffering read->write transition

Authored by klausler on Sep 30 2020, 1:10 PM.

Description

[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

Details

Committed
klauslerOct 1 2020, 4:57 PM
Differential Revision
D88612: flang] Fix buffering read->write transition
Parents
rG75a5ec1bad18: [flang][msvc] Rework a MSVC work-around to avoid clang warning
Branches
Unknown
Tags
Unknown