Merge pull request #80830 from swiftlang/revert-80583-macro-arg-apply

Revert "[CS] Make sure macro arguments go through `coerceCallArguments`"
This commit is contained in:
Hamish Knight
2025-04-16 19:19:38 +01:00
committed by GitHub
3 changed files with 0 additions and 92 deletions

View File

@@ -5612,18 +5612,6 @@ namespace {
E->setMacroRef(macroRef);
E->setType(expandedType);
auto fnType =
simplifyType(overload.adjustedOpenedType)->castTo<FunctionType>();
auto newArgs = coerceCallArguments(
E->getArgs(), fnType, macroRef, /*applyExpr=*/nullptr,
cs.getConstraintLocator(E, ConstraintLocator::ApplyArgument),
solution.getAppliedPropertyWrappers(E));
if (!newArgs)
return nullptr;
E->setArgs(newArgs);
// FIXME: Expansion should be lazy.
// i.e. 'ExpandMacroExpansionExprRequest' should be sinked into
// 'getRewritten()', and performed on-demand. Unfortunately that requires