mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
1fe7f685b5
Swift gained native Int128 / UInt128 types in SE-0425, but the plumbing for bridging them across the C/C++ boundary was incomplete. CInt128 and CUnsignedInt128 were never added to CTypes.swift, even though BuiltinMappedTypes.def has been mapping __int128 / unsigned __int128 to those names since 2013. Without the typealiases, every C declaration mentioning __int128 was silently dropped at import time. This patch adds the CInt128 and CUInt128 type aliases to CTypes.swift for forward interop, and also adds the Int128 -> __int128 mapping in PrintAsClang and IRABIDetailsProvider for reverse interop. rdar://177111210