The operator== calls equivalent which calls default_error_condition which
handles windows to posix conversion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185702
91177308-0d34-0410-b5e6-
96231b3b80d8
TempPath.str(), fd, TempPath, /*makeAbsolute=*/ false, 0664);
if (CreateMissingDirectories &&
- (EC == llvm::errc::no_such_file_or_directory ||
- EC == llvm::windows_error::file_not_found ||
- EC == llvm::windows_error::path_not_found)) {
+ EC == llvm::errc::no_such_file_or_directory) {
StringRef Parent = llvm::sys::path::parent_path(OutputPath);
EC = llvm::sys::fs::create_directories(Parent);
if (!EC) {