aboutsummaryrefslogtreecommitdiff
path: root/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--lib/Serialization/GlobalModuleIndex.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Serialization/GlobalModuleIndex.cpp b/lib/Serialization/GlobalModuleIndex.cpp
index 3b60979e75..1600e357dd 100644
--- a/lib/Serialization/GlobalModuleIndex.cpp
+++ b/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;