[llvm] r288963 - Fix the apple build issue caused by r288956

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 11:28:22 PST 2016


Author: cbieneman
Date: Wed Dec  7 13:28:22 2016
New Revision: 288963

URL: http://llvm.org/viewvc/llvm-project?rev=288963&view=rev
Log:
Fix the apple build issue caused by r288956

Should be checking if HAVE_CRASHREPORTERCLIENT_H is defined not relying on it having a value.

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=288963&r1=288962&r2=288963&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PrettyStackTrace.cpp (original)
+++ llvm/trunk/lib/Support/PrettyStackTrace.cpp Wed Dec  7 13:28:22 2016
@@ -79,7 +79,7 @@ static void PrintCurStackTrace(raw_ostre
 }
 
 // Integrate with crash reporter libraries.
-#if defined (__APPLE__) && HAVE_CRASHREPORTERCLIENT_H
+#if defined (__APPLE__) && defined(HAVE_CRASHREPORTERCLIENT_H)
 //  If any clients of llvm try to link to libCrashReporterClient.a themselves,
 //  only one crash info struct will be used.
 extern "C" {




More information about the llvm-commits mailing list