diff options
author | Abhina Sree <69635948+abhina-sree@users.noreply.github.com> | 2024-06-12 09:22:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 09:22:21 -0400 |
commit | d3342e5b922209e471b610ca1e254d9481b65319 (patch) | |
tree | 82666294b5e0212d64782abfaa6333aa0af4b982 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | ea2ee5dc2f14a17ff4486b41c9475c0b261412a4 (diff) | |
download | llvm-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.cpp | 2 |
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"); |