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