From 396121c231d17d20fbe428146f157e6a7a31d4af Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 1 Jul 2022 11:20:56 -0400 Subject: [PATCH] Fix the build on 32-bit targets. --- stdlib/public/runtime/MetadataLookup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/public/runtime/MetadataLookup.cpp b/stdlib/public/runtime/MetadataLookup.cpp index 1500423e8cd2e..97d7e97457c67 100644 --- a/stdlib/public/runtime/MetadataLookup.cpp +++ b/stdlib/public/runtime/MetadataLookup.cpp @@ -1324,6 +1324,8 @@ class DecodedMetadataBuilder { TypeReferenceOwnership ReferenceOwnership; public: + using BuiltType = const Metadata *; + struct BuiltLayoutConstraint { bool operator==(BuiltLayoutConstraint rhs) const { return true; } operator bool() const { return true; } @@ -1354,7 +1356,6 @@ class DecodedMetadataBuilder { substGenericParameter(substGenericParameter), substWitnessTable(substWitnessTable) { } - using BuiltType = const Metadata *; using BuiltTypeDecl = const ContextDescriptor *; using BuiltProtocolDecl = ProtocolDescriptorRef; using BuiltGenericSignature = const Metadata *;