From ae206db2d653cfeb1021e4e8f5783de797e521a5 Mon Sep 17 00:00:00 2001 From: Fanbo Meng Date: Tue, 31 Aug 2021 10:48:18 -0400 Subject: [PATCH] [SystemZ][z/OS] Create html report file with text flag Change OF_None to OF_Text flag in file creation, same reasoning as https://reviews.llvm.org/D97785 Reviewed By: abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D108998 --- clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index e7df9a7..9db3b14 100644 --- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -344,7 +344,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D, if (std::error_code EC = llvm::sys::fs::openFileForReadWrite( ResultPath, FD, llvm::sys::fs::CD_CreateNew, - llvm::sys::fs::OF_None)) { + llvm::sys::fs::OF_Text)) { // Existence of the file corresponds to the situation where a different // Clang instance has emitted a bug report with the same issue hash. // This is an entirely normal situation that does not deserve a warning, -- 2.7.4