Skip to content

Commit

Permalink
Revert "[SystemZ][z/OS] Propagate IsText flag continuation"
Browse files Browse the repository at this point in the history
This reverts commit 3b3accb.
  • Loading branch information
abhina-sree committed Sep 20, 2024
1 parent 766ec7d commit d6f9120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Serialization/ASTReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/FileCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6f9120

Please sign in to comment.