This is an archive of the discontinued LLVM Phabricator instance.

sanitizer_common: fix __sanitizer_get_module_and_offset_for_pc signature mismatch
ClosedPublic

Authored by dvyukov on Feb 3 2022, 7:44 AM.

Details

Summary

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.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Feb 3 2022, 7:44 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2022, 7:44 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Feb 3 2022, 9:29 AM
This revision is now accepted and ready to land.Feb 3 2022, 9:29 AM