Skip to content

Commit d92a5e8

Browse files
committed
[Runtime] Add metadata for Builtin.Int7
Fixes rdar://problem/45880755.
1 parent c367c8e commit d92a5e8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/ABI/Mangling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ types where the metadata itself has unknown layout.)
195195
global ::= protocol 'TL' // protocol requirements base descriptor
196196
global ::= assoc-type-name 'Tl' // associated type descriptor
197197
global ::= assoc-type-name 'TM' // default associated type witness accessor (HISTORICAL)
198-
global ::= type assoc-type-path protocol 'Tn' // associated conformance descriptor
199-
global ::= type assoc-type-path protocol 'TN' // default associated conformance witness accessor
198+
global ::= type assoc-type-list protocol 'Tn' // associated conformance descriptor
199+
global ::= type assoc-type-list protocol 'TN' // default associated conformance witness accessor
200200

201201
REABSTRACT-THUNK-TYPE ::= 'R' // reabstraction thunk helper function
202202
REABSTRACT-THUNK-TYPE ::= 'r' // reabstraction thunk

include/swift/Runtime/BuiltinTypes.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#endif
3434

3535
BUILTIN_TYPE(Bi1_, "Builtin.Int1")
36+
BUILTIN_TYPE(Bi7_, "Builtin.Int7")
3637
BUILTIN_TYPE(Bi8_, "Builtin.Int8")
3738
BUILTIN_TYPE(Bi16_, "Builtin.Int16")
3839
BUILTIN_TYPE(Bi32_, "Builtin.Int32")

stdlib/public/runtime/KnownMetadata.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ namespace ctypes {
5757
// Type definitions that map each names Swift builtin type to their
5858
// C counterparts.
5959
using Bi1_ = uint8_t;
60+
using Bi7_ = uint8_t;
6061
using Bi8_ = uint8_t;
6162
using Bi16_ = uint16_t;
6263
using Bi32_ = uint32_t;

0 commit comments

Comments
 (0)