@@ -1146,25 +1146,16 @@ class alignas(1 << TypeAlignInBits) TypeBase
1146
1146
// / function with each archetype-to-substituted-type binding. The callback
1147
1147
// / may return a new type to substitute into the result type, or return
1148
1148
// / CanType() to error out of the operation. Each invocation of the callback
1149
- // / receives three arguments:
1149
+ // / receives two arguments:
1150
1150
// / - The `orig` archetype from a position in `this` type.
1151
- // / - The `subst` type in the same structural position of `ty` that is trying to be bound
1152
- // / to `orig`.
1153
- // / - The `upperBound` archetype, which if set, indicates the minimum set of constraints
1154
- // / that any type substituted in this structural position must conform to. May be null,
1155
- // / indicating an unconstrained context.
1156
- // / - If `upperBound` is set, then the `substConformances` array will contain the
1157
- // / protocol conformances for `subst` to each of the protocol requirements
1158
- // / on `upperBound` in `getConformsTo` order.
1151
+ // / - The `subst` type in the same structural position of `ty` that is trying
1152
+ // / to be bound to `orig`.
1159
1153
// /
1160
1154
// / Returns the substituted type, or a null CanType() if this type
1161
1155
// / is not bindable to the substituted type, or the callback returns
1162
1156
// / CanType().
1163
1157
CanType substituteBindingsTo (Type ty,
1164
- llvm::function_ref<CanType (ArchetypeType *orig,
1165
- CanType subst,
1166
- ArchetypeType *upperBound,
1167
- ArrayRef<ProtocolConformanceRef> substConformances)> substFn);
1158
+ llvm::function_ref<CanType (ArchetypeType *orig, CanType subst)> substFn);
1168
1159
1169
1160
// / Determines whether this type is similar to \p other as defined by
1170
1161
// / \p matchOptions.
0 commit comments