Skip to content

Commit 9e4f23b

Browse files
author
Amritpan Kaur
committed
[CSGen] Update Constraint Locator for KeyPathValue
1 parent 9b39805 commit 9e4f23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ namespace {
38153815
CS.getConstraintLocator(E, ConstraintLocator::KeyPathValue);
38163816
auto *value = CS.createTypeVariable(valueLocator, TVO_CanBindToNoEscape |
38173817
TVO_CanBindToHole);
3818-
CS.addConstraint(ConstraintKind::Equal, base, value, locator);
3818+
CS.addConstraint(ConstraintKind::Equal, base, value, valueLocator);
38193819
CS.recordKeyPath(E, root, value, CurDC);
38203820

38213821
// The result is a KeyPath from the root to the end component.

0 commit comments

Comments
 (0)