diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -4081,7 +4081,8 @@ Out.flush(); std::error_code EC; llvm::raw_fd_ostream OS(CCPrintStatReportFilename, EC, - llvm::sys::fs::OF_Append); + llvm::sys::fs::OF_Append | + llvm::sys::fs::OF_Text); if (EC) return; auto L = OS.lock();