Revert "[null] Silence undefined-behavior complaints with too-small null bytes"

This reverts commit 911c76abcd.

Broke tests.  I'm not sure I understand why.  At any rate, this was a
bad way to fix.  I'll look into understanding as well as better fix.
This commit is contained in:
Behdad Esfahbod 2019-09-06 12:17:18 -04:00
parent 911c76abcd
commit 3aceee2527
1 changed files with 0 additions and 6 deletions

View File

@ -48,14 +48,8 @@
template <typename T, typename> template <typename T, typename>
struct _hb_null_size : hb_integral_constant<unsigned, sizeof (T)> {}; struct _hb_null_size : hb_integral_constant<unsigned, sizeof (T)> {};
#ifdef HB_TINY
/* Disabled unless tiny, to avoid undefined-behavior.
* Enabling it saves a couple hundred bytes only.
* To make https://bugzilla.mozilla.org/show_bug.cgi?id=810823 happy.
*/
template <typename T> template <typename T>
struct _hb_null_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::null_size> {}; struct _hb_null_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::null_size> {};
#endif
template <typename T> template <typename T>
using hb_null_size = _hb_null_size<T, void>; using hb_null_size = _hb_null_size<T, void>;