Skip to content

Commit 0138d04

Browse files
committed
fix an error in Metadata.h when building with a newer clang
rdar://103311131
1 parent d7cf7fb commit 0138d04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/ABI/Metadata.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,9 @@ struct TargetClassMetadataBounds : TargetMetadataBounds<Runtime> {
648648
/// Return the basic bounds of all Swift class metadata.
649649
/// The immediate members offset will not be meaningful.
650650
static constexpr TargetClassMetadataBounds<Runtime> forSwiftRootClass() {
651-
using Metadata = FullMetadata<TargetClassMetadataType<Runtime>>;
652-
return forAddressPointAndSize(sizeof(typename Metadata::HeaderType),
653-
sizeof(Metadata));
651+
using MetadataTy = FullMetadata<TargetClassMetadataType<Runtime>>;
652+
return forAddressPointAndSize(sizeof(typename MetadataTy::HeaderType),
653+
sizeof(MetadataTy));
654654
}
655655

656656
/// Return the bounds of a Swift class metadata with the given address

0 commit comments

Comments
 (0)