@@ -3799,16 +3799,11 @@ namespace {
37993799 auto &ctx = CS.getASTContext ();
38003800 auto locator = CS.getConstraintLocator (expr);
38013801
3802- // For calls, set up the argument list.
3803- bool isCall = expr->getArgs () != nullptr ;
3804- if (isCall) {
3805- CS.associateArgumentList (locator, expr->getArgs ());
3806- }
3802+ CS.associateArgumentList (locator, expr->getArgs ());
38073803
38083804 // Look up the macros with this name.
38093805 auto macroIdent = expr->getMacroName ().getBaseIdentifier ();
3810- FunctionRefKind functionRefKind = isCall ? FunctionRefKind::SingleApply
3811- : FunctionRefKind::Unapplied;
3806+ FunctionRefKind functionRefKind = FunctionRefKind::SingleApply;
38123807 auto macros = lookupMacros (
38133808 macroIdent, expr->getMacroNameLoc ().getBaseNameLoc (),
38143809 functionRefKind, expr->getMacroRoles ());
@@ -3831,11 +3826,7 @@ namespace {
38313826 return Type ();
38323827 }
38333828
3834- // For non-calls, the type variable is the result.
3835- if (!isCall)
3836- return macroRefType;
3837-
3838- // For calls, form the applicable-function constraint. The result type
3829+ // Form the applicable-function constraint. The result type
38393830 // is the result of that call.
38403831 SmallVector<AnyFunctionType::Param, 8 > params;
38413832 getMatchingParams (expr->getArgs (), params);
0 commit comments