[all-commits] [llvm/llvm-project] 1bb68c: [sanitizer] Allow log_path to distinguish default ...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Wed Oct 21 19:33:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bb68c9b189ffd081640e56cbfea777f484f4002
      https://github.com/llvm/llvm-project/commit/1bb68c9b189ffd081640e56cbfea777f484f4002
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_file.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_flags.inc

  Log Message:
  -----------
  [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




More information about the All-commits mailing list