[all-commits] [llvm/llvm-project] 6b025d: [Sanitizer] Fix debug builds of sanitizer_stacktra...

Luís Marques via All-commits all-commits at lists.llvm.org
Wed Mar 17 08:58:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b025da443a4ad40b7c05317db05d50af9f3d49a
      https://github.com/llvm/llvm-project/commit/6b025da443a4ad40b7c05317db05d50af9f3d49a
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp

  Log Message:
  -----------
  [Sanitizer] Fix debug builds of sanitizer_stacktrace_test.cpp

An implementation of `__sanitizer::BufferedStackTrace::UnwindImpl` is
provided per sanitizer, but there isn't one for sanitizer-common. In
non-optimized builds of the sanitizer-common tests that becomes a problem:
the test `sanitizer_stacktrace_test.cpp` won't have a reference to that
method optimized away, causing linking errors. This patch provides a dummy
implementation, which fixes those builds.

Differential Revision: https://reviews.llvm.org/D96956




More information about the All-commits mailing list