Skip to content

Commit 358fd3f

Browse files
committed
revert text assumption
1 parent ea68964 commit 358fd3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Basic/SourceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename,
627627
unsigned FileSize = File.getSize();
628628
#ifdef __MVS__
629629
llvm::ErrorOr<bool> NeedConversion =
630-
llvm::needConversion(Filename.str().c_str());
630+
llvm::needzOSConversion(Filename.str().c_str());
631631
if (NeedConversion && *NeedConversion) {
632632
// Buffer size may increase due to potential z/OS EBCDIC to UTF-8
633633
// conversion.

llvm/lib/Support/VirtualFileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ ErrorOr<std::unique_ptr<File>>
326326
RealFileSystem::openFileForRead(const Twine &Name) {
327327
SmallString<256> RealName, Storage;
328328
Expected<file_t> FDOrErr = sys::fs::openNativeFileForRead(
329-
adjustPath(Name, Storage), sys::fs::OF_Text, &RealName);
329+
adjustPath(Name, Storage), sys::fs::OF_None, &RealName);
330330
if (!FDOrErr)
331331
return errorToErrorCode(FDOrErr.takeError());
332332
return std::unique_ptr<File>(

0 commit comments

Comments
 (0)