LibGC+LibJS+LibWeb: Add workaround for Swift boolean bitfield issue

This patch adds a workaround for a Swift issue where boolean bitfields
with getters and setters in SWIFT_UNSAFE_REFERENCE types are improperly
imported, causing an ICE.
This commit is contained in:
Andrew Kaster 2025-03-22 18:58:04 -06:00 committed by Andrew Kaster
commit e4c88915ab
Notes: github-actions[bot] 2025-04-03 22:49:40 +00:00
8 changed files with 60 additions and 43 deletions

View file

@ -142,9 +142,9 @@ private:
PropertyAttributes m_attributes { 0 };
TransitionType m_transition_type { TransitionType::Invalid };
bool m_dictionary : 1 { false };
bool m_cacheable : 1 { true };
bool m_is_prototype_shape : 1 { false };
bool m_dictionary BOOL_BITFIELD { false };
bool m_cacheable BOOL_BITFIELD { true };
bool m_is_prototype_shape BOOL_BITFIELD { false };
};
}