[clang] d6f9120 - Revert "[SystemZ][z/OS] Propagate IsText flag continuation"

Abhina Sreeskantharajan via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 20 05:18:01 PDT 2024


Author: Abhina Sreeskantharajan
Date: 2024-09-20T08:17:45-04:00
New Revision: d6f91200fe95dbf30a091af3ba039a817e7ddf14

URL: https://github.com/llvm/llvm-project/commit/d6f91200fe95dbf30a091af3ba039a817e7ddf14
DIFF: https://github.com/llvm/llvm-project/commit/d6f91200fe95dbf30a091af3ba039a817e7ddf14.diff

LOG: Revert "[SystemZ][z/OS] Propagate IsText flag continuation"

This reverts commit 3b3accb598ec87a6a30b0e18ded06071030bb78f.

Added: 
    

Modified: 
    clang/lib/Serialization/ASTReader.cpp
    llvm/lib/Support/FileCollector.cpp

Removed: 
    


################################################################################
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<std::unique_ptr<llvm::vfs::File>>
-  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);


        


More information about the cfe-commits mailing list