This is an archive of the discontinued LLVM Phabricator instance.

[flang] Remove runtime check from OpenFile::Close()
ClosedPublic

Authored by klausler on Dec 6 2021, 9:15 AM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Dec 6 2021, 9:15 AM
klausler requested review of this revision.Dec 6 2021, 9:15 AM
vdonaldson accepted this revision.Dec 7 2021, 9:40 AM
This revision is now accepted and ready to land.Dec 7 2021, 9:40 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2021, 9:44 AM