Make GCC happy about attribute location

It doesn't like function attributes on definitions, only declarations.

llvm-svn: 367036
This commit is contained in:
JF Bastien 2019-07-25 16:58:15 +00:00
parent d64f9a6cb3
commit c6f2828c49

View File

@ -121,7 +121,8 @@ extern "C" const char *__crashreporter_info__
asm(".desc ___crashreporter_info__, 0x10");
#endif
static void setCrashLogMessage(const char *msg) LLVM_ATTRIBUTE_UNUSED {
static void setCrashLogMessage(const char *msg) LLVM_ATTRIBUTE_UNUSED;
static void setCrashLogMessage(const char *msg) {
#ifdef HAVE_CRASHREPORTERCLIENT_H
(void)CRSetCrashLogMessage(msg);
#elif HAVE_CRASHREPORTER_INFO