Skip to content

Commit d598c03

Browse files
committed
[ASTVerifier] Change 'getAs' to 'castTo' when verifying archetypes in
opened pack element environments.
1 parent 10adbdd commit d598c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ class Verifier : public ASTWalker {
645645
if (genericEnv->getKind() == GenericEnvironment::Kind::OpenedElement) {
646646
auto contextSubs = genericEnv->getPackElementContextSubstitutions();
647647
QuerySubstitutionMap isInContext{contextSubs};
648-
if (isInContext(root->getInterfaceType()->getAs<GenericTypeParamType>()))
648+
if (isInContext(root->getInterfaceType()->castTo<GenericTypeParamType>()))
649649
return false;
650650
}
651651
}

0 commit comments

Comments
 (0)