[sanitizer] Adjust code path of ChooseExternalSymbolizer for Windows
authorWu, Yingcong <yingcong.wu@intel.com>
Tue, 13 Jun 2023 21:51:46 +0000 (14:51 -0700)
committerFangrui Song <i@maskray.me>
Tue, 13 Jun 2023 21:51:47 +0000 (14:51 -0700)
commitf154f10887e908fa8fe3282c3cc0735717a8e97d
treea4425b0a990e8985a4a39f65ce52c60c9939a75c
parentbb209ce138e71f2fd646b7f0f865f957336c67e9
[sanitizer] Adjust code path of ChooseExternalSymbolizer for Windows

If `path` is null, `user_path` must also be null. With the current code path, the message of explicitly disabling symbolizer will never be reported. This patch adjusts the if-else structure to make that message can be reported.

Reviewed By: cchen15, MaskRay

Differential Revision: https://reviews.llvm.org/D148907
compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_win.cpp