[SystemZ][z/OS] Create html report file with text flag
authorFanbo Meng <fanbo.meng@ibm.com>
Tue, 31 Aug 2021 14:48:18 +0000 (10:48 -0400)
committerFanbo Meng <fanbo.meng@ibm.com>
Tue, 31 Aug 2021 15:52:04 +0000 (11:52 -0400)
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

index e7df9a7..9db3b14 100644 (file)
@@ -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,