diff options
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |