================ @@ -54,7 +54,9 @@ std::unique_ptr<HeaderMap> HeaderMap::Create(FileEntryRef FE, FileManager &FM) { unsigned FileSize = FE.getSize(); if (FileSize <= sizeof(HMapHeader)) return nullptr; - auto FileBuffer = FM.getBufferForFile(FE); + auto FileBuffer = + FM.getBufferForFile(FE, /*IsVolatile=*/false, + /*RequiresNullTerminator=*/true, /*IsText=*/false); ---------------- abhina-sree wrote:
So the following tests were previously failing on z/OS due to the binary/text issue and will be fixed by this change clang/test/Preprocessor/headermap-rel.c clang/test/Preprocessor/headermap-rel2.c https://github.com/llvm/llvm-project/pull/111723 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits