Skip to content

Commit fc24be2

Browse files
Merge pull request #59842 from rjmccall/declare-built-type-earlier
Fix the build on 32-bit targets
2 parents 48ada41 + 396121c commit fc24be2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/MetadataLookup.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,8 @@ class DecodedMetadataBuilder {
13241324
TypeReferenceOwnership ReferenceOwnership;
13251325

13261326
public:
1327+
using BuiltType = const Metadata *;
1328+
13271329
struct BuiltLayoutConstraint {
13281330
bool operator==(BuiltLayoutConstraint rhs) const { return true; }
13291331
operator bool() const { return true; }
@@ -1354,7 +1356,6 @@ class DecodedMetadataBuilder {
13541356
substGenericParameter(substGenericParameter),
13551357
substWitnessTable(substWitnessTable) { }
13561358

1357-
using BuiltType = const Metadata *;
13581359
using BuiltTypeDecl = const ContextDescriptor *;
13591360
using BuiltProtocolDecl = ProtocolDescriptorRef;
13601361
using BuiltGenericSignature = const Metadata *;

0 commit comments

Comments
 (0)