This is an archive of the discontinued LLVM Phabricator instance.

flang] Fix buffering read->write transition
ClosedPublic

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

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Sep 30 2020, 1:13 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Sep 30 2020, 1:13 PM
schweitz accepted this revision.Oct 1 2020, 2:03 PM
This revision is now accepted and ready to land.Oct 1 2020, 2:03 PM
This revision was automatically updated to reflect the committed changes.