Skip to content

Commit 05d5769

Browse files
committed
Sema: Pass baseObjTy instead of baseRValueTy to adjustFunctionTypeForConcurrency()
1 parent 35a439d commit 05d5769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeOfReference.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,12 +2037,12 @@ DeclReferenceType ConstraintSystem::getTypeOfMemberReference(
20372037
} else if (isa<AbstractFunctionDecl>(value) || isa<EnumElementDecl>(value)) {
20382038
unsigned numApplies = getNumApplications(hasAppliedSelf, functionRefInfo);
20392039
openedType = adjustFunctionTypeForConcurrency(
2040-
origOpenedType->castTo<FunctionType>(), baseRValueTy, value, useDC,
2040+
origOpenedType->castTo<FunctionType>(), baseObjTy, value, useDC,
20412041
numApplies, isMainDispatchQueueMember(locator),
20422042
/*openGlobalActorType=*/true, locator);
20432043
} else if (auto subscript = dyn_cast<SubscriptDecl>(value)) {
20442044
openedType = adjustFunctionTypeForConcurrency(
2045-
origOpenedType->castTo<FunctionType>(), baseRValueTy, subscript, useDC,
2045+
origOpenedType->castTo<FunctionType>(), baseObjTy, subscript, useDC,
20462046
/*numApplies=*/2, /*isMainDispatchQueue=*/false,
20472047
/*openGlobalActorType=*/true, locator);
20482048
} else if (auto var = dyn_cast<VarDecl>(value)) {

0 commit comments

Comments
 (0)