[GWP-ASan] Fix sanitizer backtrace util using wrong print.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 12 Dec 2022 21:53:08 +0000 (13:53 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 12 Dec 2022 21:53:11 +0000 (13:53 -0800)
commitf529a9f324a8eb4a0f2c5e662b6c57a6a775d62f
tree9cb530c275d53d2d84c3dfaa8fa7c65d39a30a71
parent7c34e74c2547da645f0ae542dd95059bc5f8009a
[GWP-ASan] Fix sanitizer backtrace util using wrong print.

The sanitizer backtrace is used in tests, and calling StackTrace.Print()
means that it uses the sanitizer's Printf(), rather than GWP-ASan's
Printf(). In the current code, GWP-ASan's Printf() *is* the sanitizer
print, but this isn't guaranteed to be the case, and will change in an
upcoming patch.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D139748
compiler-rt/lib/gwp_asan/optional/backtrace_sanitizer_common.cpp