libc++: integral types trap on PNaCl
Reviewers: dschuff, danalbert Subscribers: jfb, cfe-commits Differential Revision: http://reviews.llvm.org/D6411 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@222842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cb69ffa0a
commit
6317e9b85a
@ -237,7 +237,7 @@ protected:
|
|||||||
static _LIBCPP_CONSTEXPR const bool is_bounded = true;
|
static _LIBCPP_CONSTEXPR const bool is_bounded = true;
|
||||||
static _LIBCPP_CONSTEXPR const bool is_modulo = !_VSTD::is_signed<_Tp>::value;
|
static _LIBCPP_CONSTEXPR const bool is_modulo = !_VSTD::is_signed<_Tp>::value;
|
||||||
|
|
||||||
#if __i386__ || __x86_64__
|
#if defined(__i386__) || defined(__x86_64__) || defined(__pnacl__)
|
||||||
static _LIBCPP_CONSTEXPR const bool traps = true;
|
static _LIBCPP_CONSTEXPR const bool traps = true;
|
||||||
#else
|
#else
|
||||||
static _LIBCPP_CONSTEXPR const bool traps = false;
|
static _LIBCPP_CONSTEXPR const bool traps = false;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#if (defined(__i386__) || defined(__x86_64__))
|
#if defined(__i386__) || defined(__x86_64__) || defined(__pnacl__)
|
||||||
static const bool integral_types_trap = true;
|
static const bool integral_types_trap = true;
|
||||||
#else
|
#else
|
||||||
static const bool integral_types_trap = false;
|
static const bool integral_types_trap = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user