[PATCH] D41601: Ignore the DISPATCH_NOESCAPE if not defined
Yi Kong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 28 14:15:03 PST 2017
kongyi updated this revision to Diff 128306.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41601
Files:
lib/tsan/rtl/tsan_libdispatch_mac.cc
Index: lib/tsan/rtl/tsan_libdispatch_mac.cc
===================================================================
--- lib/tsan/rtl/tsan_libdispatch_mac.cc
+++ lib/tsan/rtl/tsan_libdispatch_mac.cc
@@ -25,6 +25,11 @@
#include <dispatch/dispatch.h>
#include <pthread.h>
+// DISPATCH_NOESCAPE is not defined prior to XCode 8.
+#ifndef DISPATCH_NOESCAPE
+#define DISPATCH_NOESCAPE
+#endif
+
typedef long long_t; // NOLINT
namespace __tsan {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41601.128306.patch
Type: text/x-patch
Size: 443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171228/38b3c4e7/attachment.bin>
More information about the llvm-commits
mailing list