Skip to content

Commit 761bee9

Browse files
committed
Fix typo in func replaceOpenedArchetypeInSubstituations -> replaceOpenedArchetypeInSubstitutions
1 parent dd2468c commit 761bee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SwiftCompilerSources/Sources/Optimizer/InstructionSimplification/SimplifyApply.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private func tryReplaceExistentialArchetype(of apply: ApplyInst, _ context: Simp
177177

178178
let newApply = builder.createApply(
179179
function: apply.callee,
180-
apply.replaceOpenedArchetypeInSubstituations(withConcreteType: concreteType, context),
180+
apply.replaceOpenedArchetypeInSubstitutions(withConcreteType: concreteType, context),
181181
arguments: apply.replaceExistentialArchetypeInArguments(withConcreteType: concreteType, context),
182182
isNonThrowing: apply.isNonThrowing, isNonAsync: apply.isNonAsync,
183183
specializationInfo: apply.specializationInfo)
@@ -197,7 +197,7 @@ private func tryReplaceExistentialArchetype(of tryApply: TryApplyInst, _ context
197197

198198
builder.createTryApply(
199199
function: tryApply.callee,
200-
tryApply.replaceOpenedArchetypeInSubstituations(withConcreteType: concreteType, context),
200+
tryApply.replaceOpenedArchetypeInSubstitutions(withConcreteType: concreteType, context),
201201
arguments: tryApply.replaceExistentialArchetypeInArguments(withConcreteType: concreteType, context),
202202
normalBlock: tryApply.normalBlock, errorBlock: tryApply.errorBlock,
203203
isNonAsync: tryApply.isNonAsync,
@@ -269,7 +269,7 @@ private extension FullApplySite {
269269
return Array(newArgs)
270270
}
271271

272-
func replaceOpenedArchetypeInSubstituations(
272+
func replaceOpenedArchetypeInSubstitutions(
273273
withConcreteType concreteType: CanonicalType,
274274
_ context: SimplifyContext
275275
) -> SubstitutionMap {

0 commit comments

Comments
 (0)