From 1d0912a475059c08018f4b18c055dc974d07451d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 5 Jul 2013 14:15:24 +0000 Subject: 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 --- clang/lib/Frontend/CompilerInstance.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/lib/Frontend') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 5ffee3032df..61c140caacb 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/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) { -- cgit v1.2.3