mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[SILGen] Implement NSString -> String bridging through _ObjectiveCBridgeable."
This reverts commit aa9cc23743.
This commit is contained in:
@@ -1276,11 +1276,9 @@ namespace {
|
||||
// Find the conformance of the value type to _BridgedToObjectiveC.
|
||||
Type valueType = value->getType()->getRValueType();
|
||||
ProtocolConformance *conformance = nullptr;
|
||||
bool conforms =
|
||||
tc.conformsToProtocol(valueType, bridgedProto, cs.DC,
|
||||
(ConformanceCheckFlags::InExpression|
|
||||
ConformanceCheckFlags::Used),
|
||||
&conformance);
|
||||
bool conforms = tc.conformsToProtocol(valueType, bridgedProto, cs.DC,
|
||||
ConformanceCheckFlags::InExpression,
|
||||
&conformance);
|
||||
assert(conforms && "Should already have checked the conformance");
|
||||
(void)conforms;
|
||||
|
||||
@@ -1320,8 +1318,7 @@ namespace {
|
||||
= tc.conformsToProtocol(valueType,
|
||||
bridgedProto,
|
||||
cs.DC,
|
||||
(ConformanceCheckFlags::InExpression|
|
||||
ConformanceCheckFlags::Used),
|
||||
ConformanceCheckFlags::InExpression,
|
||||
&conformance);
|
||||
|
||||
FuncDecl *fn = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user