aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorZibi Sarbinowski <zibi@ca.ibm.com>2025-04-17 10:08:57 -0400
committerGitHub <noreply@github.com>2025-04-17 10:08:57 -0400
commitbd0b903a91721570e0bc98f7ed8b0aaf2f2a628b (patch)
tree7a8b06e71d630259b17d5eb8b9cb4ad6b6bc6701 /clang/lib/Frontend/FrontendAction.cpp
parent927a0cb8d654fe11dc010dc3d05e200772709ce6 (diff)
downloadllvm-bd0b903a91721570e0bc98f7ed8b0aaf2f2a628b.zip
llvm-bd0b903a91721570e0bc98f7ed8b0aaf2f2a628b.tar.gz
llvm-bd0b903a91721570e0bc98f7ed8b0aaf2f2a628b.tar.bz2
Mark the file opened by DeserializedDeclsSourceRangePrinter as a text file (#135842)
This PR will fix the following lit failure seeing on z/OS and most likely on Windows: `FAIL: Clang :: Frontend/dump-minimization-hints.cpp` Without `OF_TextWithCRLF` flag, a file is treated as binary and is read improperly, at least on z/OS.
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index bd084aa..1c4dec0 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -312,7 +312,7 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI,
std::error_code ErrorCode;
auto FileStream = std::make_unique<llvm::raw_fd_ostream>(
DumpDeserializedDeclarationRangesPath, ErrorCode,
- llvm::sys::fs::OF_None);
+ llvm::sys::fs::OF_TextWithCRLF);
if (!ErrorCode) {
Consumers.push_back(std::make_unique<DeserializedDeclsSourceRangePrinter>(
CI.getSourceManager(), std::move(FileStream)));