aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorAbhina Sree <69635948+abhina-sree@users.noreply.github.com>2024-06-12 09:22:21 -0400
committerGitHub <noreply@github.com>2024-06-12 09:22:21 -0400
commitd3342e5b922209e471b610ca1e254d9481b65319 (patch)
tree82666294b5e0212d64782abfaa6333aa0af4b982 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parentea2ee5dc2f14a17ff4486b41c9475c0b261412a4 (diff)
downloadllvm-d3342e5b922209e471b610ca1e254d9481b65319.zip
llvm-d3342e5b922209e471b610ca1e254d9481b65319.tar.gz
llvm-d3342e5b922209e471b610ca1e254d9481b65319.tar.bz2
[SystemZ][z/OS] Continue marking text files with OF_Text (#95111)
Text files should be opened with OF_Text to have the correct encoding.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/ModuleSummaryAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
index c863936..a991377 100644
--- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
+++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
@@ -1075,7 +1075,7 @@ ModuleSummaryIndex llvm::buildModuleSummaryIndex(
if (!ModuleSummaryDotFile.empty()) {
std::error_code EC;
- raw_fd_ostream OSDot(ModuleSummaryDotFile, EC, sys::fs::OpenFlags::OF_None);
+ raw_fd_ostream OSDot(ModuleSummaryDotFile, EC, sys::fs::OpenFlags::OF_Text);
if (EC)
report_fatal_error(Twine("Failed to open dot file ") +
ModuleSummaryDotFile + ": " + EC.message() + "\n");