Skip to content

Commit 0f05b39

Browse files
committed
Gardening: fix some 80-column violations
1 parent 3b2ceb7 commit 0f05b39

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

include/swift/Reflection/ReflectionContext.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ template <typename Runtime>
3636
using SharedTargetMetadataRef = std::shared_ptr<TargetMetadata<Runtime>>;
3737

3838
template <typename Runtime>
39-
using SharedTargetNominalTypeDescriptorRef = std::shared_ptr<TargetNominalTypeDescriptor<Runtime>>;
39+
using SharedTargetNominalTypeDescriptorRef
40+
= std::shared_ptr<TargetNominalTypeDescriptor<Runtime>>;
4041

4142
using FieldSection = ReflectionSection<FieldDescriptorIterator>;
4243
using AssociatedTypeSection = ReflectionSection<AssociatedTypeIterator>;
@@ -70,7 +71,8 @@ class ReflectionContext {
7071
}
7172

7273
template <typename M>
73-
SharedTargetMetadataRef<Runtime> _readMetadata(StoredPointer Address, size_t Size = sizeof(M)) {
74+
SharedTargetMetadataRef<Runtime> _readMetadata(StoredPointer Address,
75+
size_t Size = sizeof(M)) {
7476
uint8_t *Buffer = (uint8_t *)malloc(Size);
7577
if (!Reader.readBytes(Address, Buffer, Size)) {
7678
free(Buffer);
@@ -147,9 +149,10 @@ class ReflectionContext {
147149
case MetadataKind::ErrorObject:
148150
return _readMetadata<TargetEnumMetadata<Runtime>>(Address);
149151
case MetadataKind::Existential:
150-
return _readMetadata<TargetClassMetadata<Runtime>>(Address);
152+
return _readMetadata<TargetExistentialTypeMetadata<Runtime>>(Address);
151153
case MetadataKind::ExistentialMetatype:
152-
return _readMetadata<TargetClassMetadata<Runtime>>(Address);
154+
return _readMetadata<
155+
TargetExistentialMetatypeMetadata<Runtime>>(Address);
153156
case MetadataKind::ForeignClass:
154157
return _readMetadata<TargetForeignClassMetadata<Runtime>>(Address);
155158
case MetadataKind::Function:

0 commit comments

Comments
 (0)