Skip to content

Commit cedc0b5

Browse files
Suyash SrijanSuyash Srijan
authored andcommitted
[gsb] rename variable
1 parent b047c36 commit cedc0b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4631,9 +4631,9 @@ ConstraintResult GenericSignatureBuilder::addTypeRequirement(
46314631
Impl->HadAnyError = true;
46324632

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

46394639
if (shouldOfferFixit) {

0 commit comments

Comments
 (0)