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
* Base: collapse two CPP branches
The two branches are identical and just define the same macro on different
architectures. Collapse them to simplify. Yes, Windows is supported on all
those architectures.
* Base: tweak __builtin_unreachable on Windows
Windows could be using a GNU compatible compiler (i.e. clang). In such a
scenario, assume that __builtin_unreachable() is available (any newer clang or
gcc would suffice). However, since we require clang for swift, it makes sense
to require clang for Foundation build. The minimal require clang already has
__builtin_unreachable supported.
On a non-GNU-like compiler, use the MSVC intrinsic `__assume` which gives a
proper `__builtin_unreachable` equivalent.
* Base: spell DebugBreak __builtin_trap
Use another macro to make the two cases more similar. NFC.
0 commit comments