diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp @@ -44,7 +44,6 @@ #define SANITIZER_OS_TRACE 0 #endif -// import new crash reporting api #if defined(__has_include) && __has_include() #define HAVE_CRASHREPORTERCLIENT_H 1 #include @@ -787,12 +786,10 @@ #endif } -// buffer to store crash report application information static char crashreporter_info_buff[__sanitizer::kErrorMessageBufferSize] = {}; static BlockingMutex crashreporter_info_mutex(LINKER_INITIALIZED); extern "C" { -// Integrate with crash reporter libraries. #if HAVE_CRASHREPORTERCLIENT_H CRASH_REPORTER_CLIENT_HIDDEN struct crashreporter_annotations_t gCRAnnotations @@ -810,7 +807,6 @@ }; #else -// fall back to old crashreporter api static const char *__crashreporter_info__ __attribute__((__used__)) = &crashreporter_info_buff[0]; asm(".desc ___crashreporter_info__, 0x10");