Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sanitizer] Allow log_path to distinguish default from explicit stderr
Split out of D89086 as suggested. Change the default of the log_path flag to nullptr, and the code consuming that flag (ReportFile::SetReportPath), to treat nullptr as stderr (so no change to the behavior of existing users). This allows code to distinguish between the log_path being specified explicitly as stderr vs the default. This is so the flag can be used to override the new report path variable that will be encoded in the binary for memprof for runtime testing. Differential Revision: https://reviews.llvm.org/D89629
- Loading branch information
1 parent
7c3fea7
commit 1bb68c9
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters