summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-05 14:15:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-05 14:15:24 +0000
commit1d0912a475059c08018f4b18c055dc974d07451d (patch)
tree2ae920010369cffe9fef5ff300127d89dab6c41e /clang/lib/Frontend
parent8976ea72ab70254e6bbe5fce2b75b316a45b540b (diff)
downloadbcm5719-llvm-1d0912a475059c08018f4b18c055dc974d07451d.tar.gz
bcm5719-llvm-1d0912a475059c08018f4b18c055dc974d07451d.zip
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
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
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) {
OpenPOWER on IntegriCloud