Skip to content

Commit 6e81c68

Browse files
authored
Merge pull request swiftlang#15685 from rjmccall/metadocs-docs-fixes
Revise per review, and some assorted other fixes.
2 parents 104d042 + 31e474d commit 6e81c68

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/ABI/TypeMetadata.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ All metadata records share a common header, with the following fields:
4646
with Objective-C, the kind field is instead an *isa pointer* to an
4747
Objective-C metaclass. Such a pointer can be distinguished from an
4848
enumerated metadata kind because it is guaranteed to have a value larger
49-
than **4096**. Note that this is a more basic sense of interoperation
49+
than **2047**. Note that this is a more basic sense of interoperation
5050
than is meant by the ``@objc`` attribute: it is what is required to
5151
support Objective-C message sends and retain/release. All classes are
5252
required to interoperate with Objective-C on this level when building
@@ -91,9 +91,6 @@ contain the following fields:
9191
- If the enum is generic, then the
9292
`generic argument vector`_ begins at **offset 2**.
9393

94-
- In certain circumstances, there is a `payload size`_ immediately following
95-
the `generic argument vector`.
96-
9794
Optional Metadata
9895
~~~~~~~~~~~~~~~~~
9996

@@ -612,10 +609,9 @@ Specifically, a type metadata record is required to be complete when:
612609
- It is passed as a generic argument to a function (other than a metadata
613610
access function, witness table access function, or metadata initialization
614611
function).
615-
- It is stored as a metatype value.
616-
- It is used to build an existential value.
617-
- It is passed as the ``Self`` argument to a ``static`` or ``class`` method,
618-
including an initializer.
612+
- It is used as a metatype value, including as the ``Self`` argument to a
613+
``static`` or ``class`` method, including initializers.
614+
- It is used to build an opaque existential value.
619615

620616
Metadata Requests and Responses
621617
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)