Skip to content

Commit 7827b75

Browse files
committed
projectExistential: Fix doc comment re: class existential layout
1 parent f239740 commit 7827b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Reflection/ReflectionContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class ReflectionContext
138138

139139
switch (ExistentialRecordTI->getRecordKind()) {
140140
// Class existentials have trivial layout.
141-
// The first word of the 3-word buffer has a pointer to the class instance.
141+
// It is itself the pointer to the instance followed by the witness tables.
142142
case RecordKind::ClassExistential:
143143
*OutInstanceTR = getBuilder().getTypeConverter().getUnknownObjectTypeRef();
144144
*OutInstanceAddress = ExistentialAddress;

0 commit comments

Comments
 (0)