You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[IRGen] Properly handle empty payloads in getEnumTagMultipayload (#60590)
* [IRGen] Properly handle empty payloads in getEnumTagMultipayload
rdar://97914498
The generated code assumed that payloads would always be at least
1 byte long, ignoring the possibility of empty payloads, causing
runtime crashes when using empty payloads in multi payload enums.
* Fix test
* Remove unnecessary basic block
0 commit comments