summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/PrettyStackTrace.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-12-07 19:28:22 +0000
committerChris Bieneman <beanz@apple.com>2016-12-07 19:28:22 +0000
commitbfff254a10f7eb708a2eb6f8e61d67b404c6beb3 (patch)
treefd7afa484bca6c6a12659bbae27f53b95716b741 /llvm/lib/Support/PrettyStackTrace.cpp
parent13e9b4d76851d987381d650f63fad1c272fc0239 (diff)
downloadbcm5719-llvm-bfff254a10f7eb708a2eb6f8e61d67b404c6beb3.tar.gz
bcm5719-llvm-bfff254a10f7eb708a2eb6f8e61d67b404c6beb3.zip
Fix the apple build issue caused by r288956
Should be checking if HAVE_CRASHREPORTERCLIENT_H is defined not relying on it having a value. llvm-svn: 288963
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
-rw-r--r--llvm/lib/Support/PrettyStackTrace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/PrettyStackTrace.cpp b/llvm/lib/Support/PrettyStackTrace.cpp
index 845745ced69..f49eb0a99a7 100644
--- a/llvm/lib/Support/PrettyStackTrace.cpp
+++ b/llvm/lib/Support/PrettyStackTrace.cpp
@@ -79,7 +79,7 @@ static void PrintCurStackTrace(raw_ostream &OS) {
}
// 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" {
OpenPOWER on IntegriCloud