File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4740,7 +4740,7 @@ using AccessibleFunctionRecord = TargetAccessibleFunctionRecord<InProcess>;
4740
4740
// / that relates a type attribute is attached to a generator function.
4741
4741
template <typename Runtime>
4742
4742
struct TargetRuntimeDiscoverableAttributeEntry {
4743
- ConstTargetMetadataPointer<Runtime, TargetMetadata > Type;
4743
+ RelativeDirectPointer< const char , /* nullable */ false > Type;
4744
4744
RelativeDirectPointer<TargetAccessibleFunctionRecord<Runtime>> Generator;
4745
4745
};
4746
4746
@@ -4759,7 +4759,10 @@ class RuntimeDiscoverableAttributeRecord
4759
4759
uint32_t flags;
4760
4760
4761
4761
// / The nominal type that describes the attribute.
4762
- TargetSignedContextPointer<Runtime, TargetTypeContextDescriptor> Attribute;
4762
+ TargetRelativeIndirectablePointer<Runtime,
4763
+ TargetTypeContextDescriptor<Runtime>,
4764
+ /* nullable*/ false >
4765
+ Attribute;
4763
4766
4764
4767
// / The number of types this attribute is associated with.
4765
4768
uint32_t numEntries;
Original file line number Diff line number Diff line change @@ -4449,8 +4449,8 @@ void IRGenModule::emitRuntimeDiscoverableAttributes(
4449
4449
B.addInt32 (0 );
4450
4450
4451
4451
// Attribute metadata descriptor
4452
- B.addRelativeAddress (
4453
- getAddrOfTypeContextDescriptor (attrType, RequireMetadata ));
4452
+ B.addRelativeAddress (getAddrOfLLVMVariableOrGOTEquivalent (
4453
+ LinkEntity::forNominalTypeDescriptor (attrType) ));
4454
4454
4455
4455
// Number of types it's attached to.
4456
4456
B.addInt32 (attachedTo.size ());
Original file line number Diff line number Diff line change 85
85
86
86
// CHECK: @"$s3RAD6IgnoreVHa" = internal constant
87
87
// CHECK-SAME: i32 0
88
- // CHECK-SAME: @" $s3RAD6IgnoreVMn"
88
+ // CHECK-SAME: %swift.type_descriptor** @"got. $s3RAD6IgnoreVMn"
89
89
// CHECK-SAME: i32 5
90
90
// CHECK-SAME: @"$s18runtime_attributes1AV5InnerC11extComputedSivpfa3RAD6IgnoreHF"
91
91
// CHECK-SAME: @"$s18runtime_attributes16WithExternalAttrAaBVmvpfa3RAD6IgnoreHF"
96
96
97
97
// CHECK: @"$s3RAD13TestAmbiguityVHa" = internal constant
98
98
// CHECK-SAME: i32 0
99
- // CHECK-SAME: @" $s3RAD13TestAmbiguityVMn"
99
+ // CHECK-SAME: %swift.type_descriptor** @"got. $s3RAD13TestAmbiguityVMn"
100
100
// CHECK-SAME: i32 6
101
101
// CHECK-SAME: @"$s18runtime_attributes4testyySicvpfa3RAD13TestAmbiguityHF"
102
102
// CHECK-SAME: @"$s18runtime_attributes4testyySScvpfa3RAD13TestAmbiguityHF"
You can’t perform that action at this time.
0 commit comments