Skip to content

Commit 8a132c0

Browse files
committed
Sema: Replace some usages of mapPackTypeIntoElementContext() with mapContextualPackTypeIntoElementContext()
1 parent 0ca01cc commit 8a132c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9162,7 +9162,6 @@ ConstraintSystem::simplifyPackElementOfConstraint(Type first, Type second,
91629162
if (!patternType->hasTypeVariable()) {
91639163
auto *loc = getConstraintLocator(locator);
91649164
auto shapeClass = patternType->getReducedShape();
9165-
patternType = patternType->mapTypeOutOfContext();
91669165
auto *elementEnv = getPackElementEnvironment(loc, shapeClass);
91679166

91689167
// Without an opened element environment, we cannot derive the
@@ -9185,7 +9184,7 @@ ConstraintSystem::simplifyPackElementOfConstraint(Type first, Type second,
91859184
}
91869185

91879186
auto expectedElementTy =
9188-
elementEnv->mapPackTypeIntoElementContext(patternType);
9187+
elementEnv->mapContextualPackTypeIntoElementContext(patternType);
91899188
assert(!expectedElementTy->is<PackType>());
91909189

91919190
addConstraint(ConstraintKind::Equal, elementType, expectedElementTy,

0 commit comments

Comments
 (0)