Skip to content

Commit d7cf84a

Browse files
committed
[ConstraintSystem] Use Param::getPlainType() rather than Param::getType().
1 parent 732b98f commit d7cf84a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ static bool havePotentialTypesOrLiteralConformances(Type ty,
13691369
worklist.push_back(ty);
13701370

13711371
while (!worklist.empty()) {
1372-
auto itemTy = worklist.pop_back_val()->getWithoutSpecifierType();
1372+
auto itemTy = worklist.pop_back_val()->getRValueType();
13731373

13741374
if (!itemTy->is<TypeVariableType>())
13751375
return true;
@@ -1513,7 +1513,7 @@ static bool havePotentialTypesOrLiteralConformances(Type ty,
15131513
static bool haveTypeInformationForAllArguments(AnyFunctionType *fnType,
15141514
ConstraintSystem &cs) {
15151515
return llvm::all_of(fnType->getParams(), [&](AnyFunctionType::Param param) {
1516-
return havePotentialTypesOrLiteralConformances(param.getType(), cs);
1516+
return havePotentialTypesOrLiteralConformances(param.getPlainType(), cs);
15171517
});
15181518
}
15191519

0 commit comments

Comments
 (0)