Skip to content

Commit f5f8e82

Browse files
committed
[ASTVerifier] Now that pack element generic environments contain all
archetypes from the enclosing context, the ASTVerifier can cleanup these environments in 'cleanup'.
1 parent ab4ec2b commit f5f8e82

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/AST/ASTVerifier.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -839,13 +839,10 @@ class Verifier : public ASTWalker {
839839
return true;
840840
}
841841

842-
void verifyCheckedAlways(PackExpansionExpr *E) {
843-
// Remove the element generic environment before verifying
844-
// the pack expansion type, which contains pack archetypes.
842+
void cleanup(PackExpansionExpr *E) {
845843
assert(Generics.back().get<GenericEnvironment *>() ==
846844
E->getGenericEnvironment());
847845
Generics.pop_back();
848-
verifyCheckedAlwaysBase(E);
849846
}
850847

851848
bool shouldVerify(MakeTemporarilyEscapableExpr *expr) {

0 commit comments

Comments
 (0)