+3
−3
Loading
Without __declspec(empty_bases), the MSVC ABI doesn't apply empty base optimization for multiple inheritance. Maybe<T>'s empty base (Maybe_CopyMove_Enabler<T>) gets a unique 1-byte slot past the storage, and UBSan fires "insufficient space" when operator= adjusts `this` to that subobject. Differential Revision: https://phabricator.services.mozilla.com/D299791