[all-commits] [llvm/llvm-project] ce71f8: [flang] Fix crash on empty formatted external READs
Peter Klausler via All-commits
all-commits at lists.llvm.org
Fri Oct 22 15:52:43 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce71f8e01742598f9f0b563d259561e755e1cbce
https://github.com/llvm/llvm-project/commit/ce71f8e01742598f9f0b563d259561e755e1cbce
Author: peter klausler <pklausler at nvidia.com>
Date: 2021-10-22 (Fri, 22 Oct 2021)
Changed paths:
M flang/runtime/io-stmt.cpp
Log Message:
-----------
[flang] Fix crash on empty formatted external READs
ExternalFileUnit::BeginReadingRecord() must be called at least once
during an external formatted READ statement before FinishReadingRecord().
In the case of a formatted external READ with no data items, the call
to finish processing of the format (which might have lingering control
items that need doing) was taking place before the call to BeginReadingRecord
from ExternalIoStatementState::EndIoStatement. Add a call to
BeginReadingRecord on this path.
Differential Revision: https://reviews.llvm.org/D112351
More information about the All-commits
mailing list