[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:33:00 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
+ // Log with os_log_error. This will make it into the crash log.
----------------
yln wrote:
If you haven't, please double-check this is still true with the new API.
Is there any difference in crash log format?
https://github.com/llvm/llvm-project/pull/138908
More information about the llvm-commits
mailing list