diff options
author | Martin Storsjö <martin@martin.st> | 2021-02-25 12:53:39 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-02-26 00:10:47 +0200 |
commit | f15377084c3094ad47eca8738f15d397f558df7b (patch) | |
tree | 38b9621410604afa805f9f0ae9e13ae8ec31e746 /libcxx/src/filesystem/operations.cpp | |
parent | 3573a90b8aec082b8d7a1e2fc35f7103a0df7cb6 (diff) | |
download | llvm-f15377084c3094ad47eca8738f15d397f558df7b.zip llvm-f15377084c3094ad47eca8738f15d397f558df7b.tar.gz llvm-f15377084c3094ad47eca8738f15d397f558df7b.tar.bz2 |
[libcxx] [test] Use string().c_str() to convert a std::filesystem::path to a const char*
On Windows, path::value_type is wchar_t, so one can't pass the return
value of path::c_str() directly to std::remove().
This matches what was done for tests under std/input.output/filesystems
in 81db3c31aafec72f1cfec2a9da4381ece7f97a29 and
3784bdf2176f38cc30134fab776efb43506c0c54.
Differential Revision: https://reviews.llvm.org/D97458
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
0 files changed, 0 insertions, 0 deletions