Author: Abhina Sree Date: 2026-07-24T11:27:10-04:00 New Revision: 26f5da13928ee6bd6bc2f325d13185c83a5d70eb
URL: https://github.com/llvm/llvm-project/commit/26f5da13928ee6bd6bc2f325d13185c83a5d70eb DIFF: https://github.com/llvm/llvm-project/commit/26f5da13928ee6bd6bc2f325d13185c83a5d70eb.diff LOG: [SystemZ][z/OS] Add text flag when parsing json (#211805) This patch adds the text flag when we are opening json files to parse. This fixes two lit failures on z/OS Added: Modified: clang/lib/ScalableStaticAnalysis/Core/Serialization/JSONFormat/JSONFormatImpl.cpp Removed: ################################################################################ diff --git a/clang/lib/ScalableStaticAnalysis/Core/Serialization/JSONFormat/JSONFormatImpl.cpp b/clang/lib/ScalableStaticAnalysis/Core/Serialization/JSONFormat/JSONFormatImpl.cpp index f935761b3c476..b19849233f0f8 100644 --- a/clang/lib/ScalableStaticAnalysis/Core/Serialization/JSONFormat/JSONFormatImpl.cpp +++ b/clang/lib/ScalableStaticAnalysis/Core/Serialization/JSONFormat/JSONFormatImpl.cpp @@ -55,7 +55,7 @@ llvm::Expected<Value> readJSON(llvm::StringRef Path) { .build(); } - auto BufferOrError = llvm::MemoryBuffer::getFile(Path); + auto BufferOrError = llvm::MemoryBuffer::getFile(Path, /*IsText=*/true); if (!BufferOrError) { const std::error_code EC = BufferOrError.getError(); return ErrorBuilder::create(EC, ErrorMessages::FailedToReadFile, Path, _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
