diff --git a/flang/runtime/file.cpp b/flang/runtime/file.cpp --- a/flang/runtime/file.cpp +++ b/flang/runtime/file.cpp @@ -157,7 +157,6 @@ } void OpenFile::Close(CloseStatus status, IoErrorHandler &handler) { - CheckOpen(handler); pending_.reset(); knownSize_.reset(); switch (status) {