aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2021-06-09 16:11:27 -0700
committerAmy Huang <akhuang@google.com>2021-06-09 16:15:16 -0700
commitcf11d9585afd5c43031aaaaa9fb622c8c31b4bef (patch)
treea5fe422bb94a556e63faad8dc55149d2fb6da954 /clang/lib/Frontend/CompilerInstance.cpp
parentb9d7ffd9cf5f9caefb9796468bf4cbeec709b320 (diff)
downloadllvm-cf11d9585afd5c43031aaaaa9fb622c8c31b4bef.zip
llvm-cf11d9585afd5c43031aaaaa9fb622c8c31b4bef.tar.gz
llvm-cf11d9585afd5c43031aaaaa9fb622c8c31b4bef.tar.bz2
Fix to Windows temp file change.
Original change passed wrong parameters to the raw_fd_ostream ctor. Fixes a bug in https://reviews.llvm.org/D102736.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-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 a70fe95..78c7d84 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -853,9 +853,7 @@ CompilerInstance::createOutputFileImpl(StringRef OutputPath, bool Binary,
consumeError(std::move(E));
} else {
Temp = std::move(ExpectedFile.get());
- OS.reset(new llvm::raw_fd_ostream(Temp->FD, /*shouldClose=*/false,
- Binary ? llvm::sys::fs::OF_None
- : llvm::sys::fs::OF_Text));
+ OS.reset(new llvm::raw_fd_ostream(Temp->FD, /*shouldClose=*/false));
OSFile = Temp->TmpName;
}
// If we failed to create the temporary, fallback to writing to the file