Skip to content

Commit

Permalink
[SystemZ][z/OS] Propagate IsText flag continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
abhina-sree committed Sep 19, 2024
1 parent 96ba9d3 commit 3b3accb
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=*/true);
/*IsText=*/false);
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) override {
openFileForRead(const Twine &Path, bool IsText = true) override {
auto Result = FS->openFileForRead(Path, IsText);
if (Result && *Result)
Collector->addFile(Path);
Expand Down

0 comments on commit 3b3accb

Please sign in to comment.