Skip to content

Commit 4f9b53f

Browse files
committed
AST: Remove dead code from ASTVerifier
These substitution maps store interface types so there is nothing we can check really, even if verifyChecked(SubstitutionMap) was not a no-op.
1 parent 098ffdc commit 4f9b53f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/AST/ASTVerifier.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,21 +2716,6 @@ class Verifier : public ASTWalker {
27162716
abort();
27172717
}
27182718

2719-
// Check the witness substitutions.
2720-
const auto &witness = normal->getWitnessUncached(req);
2721-
2722-
if (auto *genericEnv = witness.getSyntheticEnvironment())
2723-
Generics.push_back(genericEnv->getGenericSignature());
2724-
2725-
verifyChecked(witness.getRequirementToSyntheticSubs());
2726-
verifyChecked(witness.getSubstitutions());
2727-
2728-
if (auto *genericEnv = witness.getSyntheticEnvironment()) {
2729-
assert(Generics.back().get<GenericSignature>().getPointer()
2730-
== genericEnv->getGenericSignature().getPointer());
2731-
Generics.pop_back();
2732-
}
2733-
27342719
continue;
27352720
}
27362721
}

0 commit comments

Comments
 (0)