mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #78309 from AnthonyLatsis/nymphaea
Assortment of small fixes and cleanups
This commit is contained in:
@@ -1441,8 +1441,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static std::optional<std::tuple<GenericTypeParamType *, TypeVariableType *,
|
||||
Type, OpenedExistentialAdjustments>>
|
||||
static std::optional<
|
||||
std::tuple<TypeVariableType *, Type, OpenedExistentialAdjustments>>
|
||||
shouldOpenExistentialCallArgument(ValueDecl *callee, unsigned paramIdx,
|
||||
Type paramTy, Type argTy, Expr *argExpr,
|
||||
ConstraintSystem &cs) {
|
||||
@@ -1819,12 +1819,10 @@ static ConstraintSystem::TypeMatchResult matchCallArguments(
|
||||
if (auto existentialArg = shouldOpenExistentialCallArgument(
|
||||
callee, paramIdx, paramTy, argTy, argExpr, cs)) {
|
||||
// My kingdom for a decent "if let" in C++.
|
||||
GenericTypeParamType *openedGenericParam;
|
||||
TypeVariableType *openedTypeVar;
|
||||
Type existentialType;
|
||||
OpenedExistentialAdjustments adjustments;
|
||||
std::tie(openedGenericParam, openedTypeVar, existentialType,
|
||||
adjustments) = *existentialArg;
|
||||
std::tie(openedTypeVar, existentialType, adjustments) = *existentialArg;
|
||||
|
||||
OpenedArchetypeType *opened;
|
||||
std::tie(argTy, opened) = cs.openExistentialType(
|
||||
|
||||
Reference in New Issue
Block a user