Skip to content

Commit 5869aa3

Browse files
Merge pull request #70385 from aschwaighofer/enable_objc_protocol_symbolic_refs
Enable the use of objective-c protocol symbolic references in type metadata encodings
2 parents 01670cd + eaedad5 commit 5869aa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/IRGenOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class IRGenOptions {
537537
UseTypeLayoutValueHandling(true), ForceStructTypeLayouts(false),
538538
EnableLayoutStringValueWitnesses(false),
539539
EnableLayoutStringValueWitnessesInstantiation(false),
540-
EnableObjectiveCProtocolSymbolicReferences(false),
540+
EnableObjectiveCProtocolSymbolicReferences(true),
541541
GenerateProfile(false), EnableDynamicReplacementChaining(false),
542542
DisableDebuggerShadowCopies(false),
543543
DisableConcreteTypeMetadataMangledNameAccessors(false),

lib/AST/Availability.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ ASTContext::getInitRawStructMetadataAvailability() {
594594
}
595595

596596
AvailabilityContext ASTContext::getObjCSymbolicReferencesAvailability() {
597-
return getSwiftFutureAvailability();
597+
return getSwift511Availability();
598598
}
599599

600600
AvailabilityContext ASTContext::getSwift52Availability() {

0 commit comments

Comments
 (0)