Skip to content

Commit 3c1e8fa

Browse files
Suyash SrijanSuyash Srijan
authored andcommitted
[gsb] replace dyn_cast with isa
1 parent cedc0b5 commit 3c1e8fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4632,8 +4632,8 @@ ConstraintResult GenericSignatureBuilder::addTypeRequirement(
46324632

46334633
bool shouldOfferFixit = false;
46344634
if (auto GTPT = subjectType->getAs<GenericTypeParamType>()) {
4635-
shouldOfferFixit = dyn_cast<ExtensionDecl>(GTPT->getDecl()
4636-
->getDeclContext());
4635+
shouldOfferFixit = isa<ExtensionDecl>(GTPT->getDecl()
4636+
->getDeclContext());
46374637
}
46384638

46394639
if (shouldOfferFixit) {

0 commit comments

Comments
 (0)