Skip to content

Commit eaedad5

Browse files
committed
Enable the use of objective-c protocol symbolic references in type metadata encodings
rdar://111536582
1 parent d270dad commit eaedad5

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
@@ -590,7 +590,7 @@ ASTContext::getInitRawStructMetadataAvailability() {
590590
}
591591

592592
AvailabilityContext ASTContext::getObjCSymbolicReferencesAvailability() {
593-
return getSwiftFutureAvailability();
593+
return getSwift511Availability();
594594
}
595595

596596
AvailabilityContext ASTContext::getSwift52Availability() {

0 commit comments

Comments
 (0)