aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp b/contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp
index c2ca97a59c62..01f7095f3499 100644
--- a/contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp
+++ b/contrib/llvm-project/llvm/lib/Support/ToolOutputFile.cpp
@@ -46,7 +46,7 @@ ToolOutputFile::ToolOutputFile(StringRef Filename, std::error_code &EC,
return;
}
OSHolder.emplace(Filename, EC, Flags);
- OS = OSHolder.getPointer();
+ OS = &*OSHolder;
// If open fails, no cleanup is needed.
if (EC)
Installer.Keep = true;
@@ -55,5 +55,5 @@ ToolOutputFile::ToolOutputFile(StringRef Filename, std::error_code &EC,
ToolOutputFile::ToolOutputFile(StringRef Filename, int FD)
: Installer(Filename) {
OSHolder.emplace(FD, true);
- OS = OSHolder.getPointer();
+ OS = &*OSHolder;
}