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/Passes | |
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/Passes')
-rw-r--r-- | llvm/lib/Passes/StandardInstrumentations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp index c7adc76..429edab 100644 --- a/llvm/lib/Passes/StandardInstrumentations.cpp +++ b/llvm/lib/Passes/StandardInstrumentations.cpp @@ -838,7 +838,7 @@ static int prepareDumpIRFileDescriptor(const StringRef DumpIRFilename) { } int Result = 0; EC = sys::fs::openFile(DumpIRFilename, Result, sys::fs::CD_OpenAlways, - sys::fs::FA_Write, sys::fs::OF_None); + sys::fs::FA_Write, sys::fs::OF_Text); if (EC) report_fatal_error(Twine("Failed to open ") + DumpIRFilename + " to support -ir-dump-directory: " + EC.message()); |