mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user