summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Serialization/GlobalModuleIndex.cpp4
-rw-r--r--clang/test/Modules/global_index.m2
2 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index 3b60979e75c..1600e357dda 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -507,9 +507,7 @@ GlobalModuleIndex::writeIndex(FileManager &FileMgr, StringRef Path) {
return EC_IOError;
// Open the temporary global index file for output.
- std::string ErrorInfo;
- llvm::raw_fd_ostream Out(IndexTmpPath.c_str(), ErrorInfo,
- llvm::raw_fd_ostream::F_Binary);
+ llvm::raw_fd_ostream Out(TmpFD, true);
if (Out.has_error())
return EC_IOError;
diff --git a/clang/test/Modules/global_index.m b/clang/test/Modules/global_index.m
index 2af18c41b66..423e1113e4f 100644
--- a/clang/test/Modules/global_index.m
+++ b/clang/test/Modules/global_index.m
@@ -1,8 +1,6 @@
// RUN: rm -rf %t
// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -generate-module-index -F %S/Inputs %s -verify
// RUN: ls %t|grep modules.idx
-// REQUIRES: shell
-// XFAIL: mingw32
// expected-no-diagnostics
@import DependsOnModule;
OpenPOWER on IntegriCloud