File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1369,7 +1369,7 @@ static bool havePotentialTypesOrLiteralConformances(Type ty,
1369
1369
worklist.push_back (ty);
1370
1370
1371
1371
while (!worklist.empty ()) {
1372
- auto itemTy = worklist.pop_back_val ()->getWithoutSpecifierType ();
1372
+ auto itemTy = worklist.pop_back_val ()->getRValueType ();
1373
1373
1374
1374
if (!itemTy->is <TypeVariableType>())
1375
1375
return true ;
@@ -1513,7 +1513,7 @@ static bool havePotentialTypesOrLiteralConformances(Type ty,
1513
1513
static bool haveTypeInformationForAllArguments (AnyFunctionType *fnType,
1514
1514
ConstraintSystem &cs) {
1515
1515
return llvm::all_of (fnType->getParams (), [&](AnyFunctionType::Param param) {
1516
- return havePotentialTypesOrLiteralConformances (param.getType (), cs);
1516
+ return havePotentialTypesOrLiteralConformances (param.getPlainType (), cs);
1517
1517
});
1518
1518
}
1519
1519
You can’t perform that action at this time.
0 commit comments