[llvm] r367036 - Make GCC happy about attribute location
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 25 09:58:16 PDT 2019
Author: jfb
Date: Thu Jul 25 09:58:15 2019
New Revision: 367036
URL: http://llvm.org/viewvc/llvm-project?rev=367036&view=rev
Log:
Make GCC happy about attribute location
It doesn't like function attributes on definitions, only declarations.
Modified:
llvm/trunk/lib/Support/PrettyStackTrace.cpp
Modified: llvm/trunk/lib/Support/PrettyStackTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PrettyStackTrace.cpp?rev=367036&r1=367035&r2=367036&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PrettyStackTrace.cpp (original)
+++ llvm/trunk/lib/Support/PrettyStackTrace.cpp Thu Jul 25 09:58:15 2019
@@ -121,7 +121,8 @@ extern "C" const char *__crashreporter_i
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
More information about the llvm-commits
mailing list