When moving a temp file, explicitly set the file descriptor to -1 so we can never accidentally close the moved-from TempFile.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D63087
[Path] Set FD to -1 in moved-from TempFile ClosedPublic Authored by JDevlieghere on Jun 10 2019, 12:08 PM.
Details Summary When moving a temp file, explicitly set the file descriptor to -1 so we can never accidentally close the moved-from TempFile.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 10 2019, 1:46 PM Closed by commit rL363083: [Path] Set FD to -1 in moved-from TempFile (authored by JDevlieghere). · Explain WhyJun 11 2019, 9:39 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 204091 llvm/trunk/lib/Support/Path.cpp
llvm/trunk/unittests/Support/Path.cpp
|