Skip to content

Commit ff74d8c

Browse files
authored
Merge pull request #17550 from rudkx/rdar41306933-4.2
[4.2] [ConstraintSystem] Use the type cache to read types in constraint gen…
2 parents 7f9c21a + 6e580be commit ff74d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,8 +2756,8 @@ namespace {
27562756
auto locator = CS.getConstraintLocator(expr);
27572757
auto projectedTy = CS.createTypeVariable(locator,
27582758
TVO_CanBindToLValue);
2759-
CS.addKeyPathApplicationConstraint(expr->getKeyPath()->getType(),
2760-
expr->getBase()->getType(),
2759+
CS.addKeyPathApplicationConstraint(CS.getType(expr->getKeyPath()),
2760+
CS.getType(expr->getBase()),
27612761
projectedTy,
27622762
locator);
27632763
return projectedTy;

0 commit comments

Comments
 (0)