HomePhabricator

[libcxx] Avoid double frees of file descriptors in the fallback…

Authored by mstorsjo on Nov 2 2020, 12:19 AM.

Description

[libcxx] Avoid double frees of file descriptors in the fallback ifstream/ofstream codepath

So far, most actual uses of libc++ std::filesystem probably use
the sendfile or fcopyfile implementations.

Differential Revision: https://reviews.llvm.org/D90601