From: Rafael Espindola Date: Fri, 5 Jul 2013 14:15:24 +0000 (+0000) Subject: We don't need to check for windows' error codes in here. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abab18373808f2a179a97b00d574e306970934d7;p=clang 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 5ffee3032d..61c140caac 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -548,9 +548,7 @@ CompilerInstance::createOutputFile(StringRef OutputPath, 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) {