[all-commits] [llvm/llvm-project] 4f3f4d: sanitizer_common: fix __sanitizer_get_module_and_o...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Thu Feb 3 10:41:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f3f4d672254c5bedf95517894c47b5c31751994
      https://github.com/llvm/llvm-project/commit/4f3f4d672254c5bedf95517894c47b5c31751994
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-02-03 (Thu, 03 Feb 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common.h
    M compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_interface_internal.h
    M compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp

  Log Message:
  -----------
  sanitizer_common: fix __sanitizer_get_module_and_offset_for_pc signature mismatch

This fixes the following error:

sanitizer_interface_internal.h:77:7: error: conflicting types for
     '__sanitizer_get_module_and_offset_for_pc'
  int __sanitizer_get_module_and_offset_for_pc(
common_interface_defs.h:349:5: note: previous declaration is here
int __sanitizer_get_module_and_offset_for_pc(void *pc, char *module_path,

I am getting it on a code that uses sanitizer_common (includes internal headers),
but also transitively gets includes of the public headers in tests
via an internal version of gtest.

Reviewed By: melver

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




More information about the All-commits mailing list