Skip to content

Commit 3add046

Browse files
Remove redundant generic signature pointer (#17745)
1 parent a1adf9f commit 3add046

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5305,8 +5305,7 @@ void ModuleFile::finishNormalConformance(NormalProtocolConformance *conformance,
53055305
continue;
53065306
}
53075307

5308-
// Generic signature and environment.
5309-
GenericSignature *syntheticSig = nullptr;
5308+
// Generic environment.
53105309
GenericEnvironment *syntheticEnv = nullptr;
53115310

53125311
auto trySetOpaqueWitness = [&]{
@@ -5315,7 +5314,7 @@ void ModuleFile::finishNormalConformance(NormalProtocolConformance *conformance,
53155314

53165315
// We shouldn't yet need to worry about generic requirements, since
53175316
// an imported ObjC method should never be generic.
5318-
assert(syntheticSig == nullptr && syntheticEnv == nullptr &&
5317+
assert(syntheticEnv == nullptr &&
53195318
"opaque witness shouldn't be generic yet. when this is "
53205319
"possible, it should use forwarding substitutions");
53215320
conformance->setWitness(req, Witness::forOpaque(req));

0 commit comments

Comments
 (0)