[flang] Remove runtime check from OpenFile::Close()
authorPeter Klausler <pklausler@nvidia.com>
Mon, 6 Dec 2021 15:42:13 +0000 (07:42 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 7 Dec 2021 17:43:24 +0000 (09:43 -0800)
commit5034e1730f7a4dbd8004900096c4b176d24f13cb
tree3367977e69c91b173d392bf2fcd341caa0f6e3be
parentc84616c3b368f1ca679a08d2ce131f01a9f14ce9
[flang] Remove runtime check from OpenFile::Close()

In error cases it is possible to CLOSE a unit that has not
been successfully connected, so don't crash when the file descriptor
is negative.

Differential Revision: https://reviews.llvm.org/D115165
flang/runtime/file.cpp