Skip to content

Commit 510c412

Browse files
committed
Serialization: Fix a warning
1 parent 75fe659 commit 510c412

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,9 +1552,7 @@ void Serializer::writeNormalConformance(
15521552
// Bail out early for simple witnesses.
15531553
if (!witness.getDecl()) return;
15541554

1555-
if (auto genericEnv = witness.requiresSubstitution()
1556-
? witness.getSyntheticEnvironment()
1557-
: nullptr) {
1555+
if (witness.requiresSubstitution()) {
15581556
// Write requirement-to-synthetic substitutions.
15591557
writeSubstitutions(witness.getRequirementToSyntheticSubs(),
15601558
DeclTypeAbbrCodes,

0 commit comments

Comments
 (0)