From: Fanbo Meng Date: Tue, 31 Aug 2021 14:48:18 +0000 (-0400) Subject: [SystemZ][z/OS] Create html report file with text flag X-Git-Tag: upstream/15.0.7~32639 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae206db2d653cfeb1021e4e8f5783de797e521a5;p=platform%2Fupstream%2Fllvm.git [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 --- 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,