diff --git a/compiler-rt/lib/scudo/scudo_utils.h b/compiler-rt/lib/scudo/scudo_utils.h --- a/compiler-rt/lib/scudo/scudo_utils.h +++ b/compiler-rt/lib/scudo/scudo_utils.h @@ -27,7 +27,7 @@ return dest; } -void NORETURN dieWithMessage(const char *Format, ...); +void dieWithMessage(const char *Format, ...) NORETURN FORMAT(1, 2); bool hasHardwareCRC32(); diff --git a/compiler-rt/lib/scudo/scudo_utils.cpp b/compiler-rt/lib/scudo/scudo_utils.cpp --- a/compiler-rt/lib/scudo/scudo_utils.cpp +++ b/compiler-rt/lib/scudo/scudo_utils.cpp @@ -39,7 +39,7 @@ namespace __scudo { -FORMAT(1, 2) void NORETURN dieWithMessage(const char *Format, ...) { +void dieWithMessage(const char *Format, ...) { static const char ScudoError[] = "Scudo ERROR: "; static constexpr uptr PrefixSize = sizeof(ScudoError) - 1; // Our messages are tiny, 256 characters is more than enough.