Don't use a strict larger-than comparison in the check_fit/does_fit static assert

For builds that only target one architecture, this was required to
be an exact match, while it previously required the allocation to be
strictly larger than the largest concrete one. Requiring it to be
larger than on equal should be enough.

This makes it more straightforward to update _LIBUNWIND_CONTEXT_SIZE
and _LIBUNWIND_CURSOR_SIZE.

llvm-svn: 321679
This commit is contained in:
Martin Storsjo 2018-01-02 22:11:22 +00:00
parent f5d150037a
commit ecf9054544
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@
#if defined(_LIBUNWIND_IS_NATIVE_ONLY)
# define COMP_OP ==
#else
# define COMP_OP <
# define COMP_OP <=
#endif
template <typename _Type, typename _Mem>
struct check_fit {