We don't need to check for windows' error codes in here.
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
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index 5ffee30..61c140c 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/lib/Frontend/CompilerInstance.cpp
@@ -548,9 +548,7 @@
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) {