diff options
author | Amy Huang <akhuang@google.com> | 2021-06-09 16:11:27 -0700 |
---|---|---|
committer | Amy Huang <akhuang@google.com> | 2021-06-09 16:15:16 -0700 |
commit | cf11d9585afd5c43031aaaaa9fb622c8c31b4bef (patch) | |
tree | a5fe422bb94a556e63faad8dc55149d2fb6da954 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | b9d7ffd9cf5f9caefb9796468bf4cbeec709b320 (diff) | |
download | llvm-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.cpp | 4 |
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 |