Skip to content

Commit

Permalink
[SystemZ][z/OS] Create html report file with text flag
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fanbo-meng committed Aug 31, 2021
1 parent 6600e17 commit ae206db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit ae206db

Please sign in to comment.