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.

llvm-svn: 185702
This commit is contained in:
Rafael Espindola 2013-07-05 14:15:24 +00:00
parent 8976ea72ab
commit 1d0912a475
1 changed files with 1 additions and 3 deletions

View File

@ -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) {