[compiler-rt] [compiler-rt] Replace deprecated os_trace calls on mac (PR #138908)
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 08:36:06 PDT 2025
================
@@ -844,30 +844,26 @@ void LogMessageOnPrintf(const char *str) {
void LogFullErrorReport(const char *buffer) {
#if !SANITIZER_GO
- // Log with os_trace. This will make it into the crash log.
-#if SANITIZER_OS_TRACE
-#pragma clang diagnostic push
-// os_trace is deprecated.
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- if (GetMacosAlignedVersion() >= MacosVersion(10, 10)) {
- // os_trace requires the message (format parameter) to be a string literal.
+# if SANITIZER_OS_TRACE
----------------
yln wrote:
We can now also remove the `SANITIZER_OS_TRACE` macro and `#include <os/trace.h>` above.
This file already includes `#include <os/log.h>`.
https://github.com/llvm/llvm-project/pull/138908
More information about the llvm-commits
mailing list