@@ -453,6 +453,7 @@ class LinkEntity {
453
453
ProtocolConformanceDescriptorRecord,
454
454
455
455
// These are both type kinds and protocol-conformance kinds.
456
+ // TYPE KINDS: BEGIN {{
456
457
457
458
// / A lazy protocol witness accessor function. The pointer is a
458
459
// / canonical TypeBase*, and the secondary pointer is a
@@ -503,9 +504,6 @@ class LinkEntity {
503
504
// / A coroutine continuation prototype function.
504
505
CoroutineContinuationPrototype,
505
506
506
- // / A global function pointer for dynamically replaceable functions.
507
- DynamicallyReplaceableFunctionVariable,
508
-
509
507
// / A reference to a metaclass-stub for a statically specialized generic
510
508
// / class.
511
509
// / The pointer is a canonical TypeBase*.
@@ -525,6 +523,16 @@ class LinkEntity {
525
523
// / The pointer is a canonical TypeBase*.
526
524
NoncanonicalSpecializedGenericTypeMetadataCacheVariable,
527
525
526
+ // / Extended existential type shape.
527
+ // / Pointer is the (generalized) existential type.
528
+ // / SecondaryPointer is the GenericSignatureImpl*.
529
+ ExtendedExistentialTypeShape,
530
+
531
+ // TYPE KINDS: END }}
532
+
533
+ // / A global function pointer for dynamically replaceable functions.
534
+ DynamicallyReplaceableFunctionVariable,
535
+
528
536
// / Provides the data required to invoke an async function using the async
529
537
// / calling convention in the form of the size of the context to allocate
530
538
// / and the relative address of the function to call with that allocated
@@ -556,11 +564,6 @@ class LinkEntity {
556
564
// / The pointer is a SILFunction*.
557
565
AccessibleFunctionRecord,
558
566
559
- // / Extended existential type shape.
560
- // / Pointer is the (generalized) existential type.
561
- // / SecondaryPointer is the GenericSignatureImpl*.
562
- ExtendedExistentialTypeShape,
563
-
564
567
// / A global struct containing a relative pointer to the single-yield
565
568
// / coroutine ramp function and the fixed-size to be allocated in the
566
569
// / caller.
@@ -624,7 +627,8 @@ class LinkEntity {
624
627
625
628
static bool isDeclKind (Kind k) { return k <= Kind::CoroFunctionPointerAST; }
626
629
static bool isTypeKind (Kind k) {
627
- return k >= Kind::ProtocolWitnessTableLazyAccessFunction;
630
+ return k >= Kind::ProtocolWitnessTableLazyAccessFunction &&
631
+ k < Kind::DynamicallyReplaceableFunctionVariable;
628
632
}
629
633
630
634
static bool isRootProtocolConformanceKind (Kind k) {
0 commit comments