mclow.lists added inline comments.
================ Comment at: src/experimental/filesystem/operations.cpp:666 if (::remove(p.c_str()) == -1) { - set_or_throw(ec, "remove", p); + if (ec != nullptr && *ec != errc::no_such_file_or_directory) + set_or_throw(ec, "remove", p); ---------------- I don't think that this is correct. In the case where ec == nullptr AND the error is not "no such file", this will fail to throw. I think you just want this test to be: if (errno != ENOENT) https://reviews.llvm.org/D41830 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits