From d6f91200fe95dbf30a091af3ba039a817e7ddf14 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 20 Sep 2024 08:17:45 -0400 Subject: [PATCH] Revert "[SystemZ][z/OS] Propagate IsText flag continuation" This reverts commit 3b3accb598ec87a6a30b0e18ded06071030bb78f. --- clang/lib/Serialization/ASTReader.cpp | 2 +- llvm/lib/Support/FileCollector.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index a8d073dee0246e..ad0551ee117a97 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -5318,7 +5318,7 @@ std::string ASTReader::getOriginalSourceFile( // Open the AST file. auto Buffer = FileMgr.getBufferForFile(ASTFileName, /*IsVolatile=*/false, /*RequiresNullTerminator=*/false, - /*IsText=*/false); + /*IsText=*/true); if (!Buffer) { Diags.Report(diag::err_fe_unable_to_read_pch_file) << ASTFileName << Buffer.getError().message(); diff --git a/llvm/lib/Support/FileCollector.cpp b/llvm/lib/Support/FileCollector.cpp index 966c5ac90e9412..fd4350da7f66a6 100644 --- a/llvm/lib/Support/FileCollector.cpp +++ b/llvm/lib/Support/FileCollector.cpp @@ -268,7 +268,7 @@ class FileCollectorFileSystem : public vfs::FileSystem { } llvm::ErrorOr> - openFileForRead(const Twine &Path, bool IsText = true) override { + openFileForRead(const Twine &Path, bool IsText) override { auto Result = FS->openFileForRead(Path, IsText); if (Result && *Result) Collector->addFile(Path);