From: Saleem Abdulrasool Date: Wed, 20 Apr 2016 20:54:55 +0000 (+0000) Subject: unwind: remove a second instance of -Wexpansion-to-defined X-Git-Tag: llvmorg-3.9.0-rc1~8544 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0ec6a58f552c0ea03f6ebfcbe2ebda57640978b;p=platform%2Fupstream%2Fllvm.git unwind: remove a second instance of -Wexpansion-to-defined Remove the use of undefined behaviour in the c preprocessor by always defining the value according to the state that was being checked. NFC. llvm-svn: 266916 --- diff --git a/libunwind/src/config.h b/libunwind/src/config.h index b14e591..69f5cc1 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -86,11 +86,14 @@ #endif #endif -#define _LIBUNWIND_BUILD_ZERO_COST_APIS \ - (defined(__i386__) || defined(__x86_64__) || \ - (!defined(__APPLE__) && defined(__arm__)) || \ - (defined(__arm64__) || defined(__aarch64__)) || \ - (defined(__APPLE__) && defined(__mips__))) +#if defined(__i386__) || defined(__x86_64__) || \ + (!defined(__APPLE__) && defined(__arm__)) || \ + (defined(__arm64__) || defined(__aarch64__)) || \ + (defined(__APPLE__) && defined(__mips__)) +#define _LIBUNWIND_BUILD_ZERO_COST_APIS 1 +#else +#define _LIBUNWIND_BUILD_ZERO_COST_APIS 0 +#endif // Macros that define away in non-Debug builds #ifdef NDEBUG