[PATCH] D30343: [libcxxabi] Fix condition typo in rL296136

Ranjeet Singh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 24 09:56:35 PST 2017


rs created this revision.

Made a mistake in the condition typo because LIBCXXABI_BAREMETAL is always defined, I should have been checking the contents to see if it's enabled


https://reviews.llvm.org/D30343

Files:
  src/abort_message.cpp


Index: src/abort_message.cpp
===================================================================
--- src/abort_message.cpp
+++ src/abort_message.cpp
@@ -35,7 +35,7 @@
 void abort_message(const char* format, ...)
 {
     // write message to stderr
-#if !defined(NDEBUG) && !defined(LIBCXXABI_BAREMETAL)
+#if !defined(NDEBUG) || !LIBCXXABI_BAREMETAL
 #ifdef __APPLE__
     fprintf(stderr, "libc++abi.dylib: ");
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30343.89687.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170224/f3cc39fa/attachment.bin>


More information about the cfe-commits mailing list