Skip to content

Commit dab7dbf

Browse files
author
Amritpan Kaur
committed
[NFC] Correct variable names
1 parent b008a4b commit dab7dbf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/Sema/CSGen.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,22 +3745,22 @@ namespace {
37453745
base = optTy;
37463746
}
37473747

3748-
auto baseLocator =
3748+
auto valueLocator =
37493749
CS.getConstraintLocator(E, ConstraintLocator::KeyPathValue);
3750-
auto rvalueBase = CS.createTypeVariable(
3751-
baseLocator, TVO_CanBindToNoEscape | TVO_CanBindToHole);
3752-
CS.addConstraint(ConstraintKind::Equal, base, rvalueBase, locator);
3750+
auto value = CS.createTypeVariable(valueLocator, TVO_CanBindToNoEscape |
3751+
TVO_CanBindToHole);
3752+
CS.addConstraint(ConstraintKind::Equal, base, value, locator);
37533753

37543754
// The result is a KeyPath from the root to the end component.
37553755
// The type of key path depends on the overloads chosen for the key
37563756
// path components.
3757-
auto typeLoc = CS.getConstraintLocator(
3758-
locator, LocatorPathElt::KeyPathType(rvalueBase));
3757+
auto typeLoc =
3758+
CS.getConstraintLocator(locator, LocatorPathElt::KeyPathType(value));
37593759

37603760
Type kpTy = CS.createTypeVariable(typeLoc, TVO_CanBindToNoEscape |
37613761
TVO_CanBindToHole);
3762-
CS.addKeyPathConstraint(kpTy, root, rvalueBase, componentTypeVars,
3763-
locator);
3762+
3763+
CS.addKeyPathConstraint(kpTy, root, value, componentTypeVars, locator);
37643764
return kpTy;
37653765
}
37663766

0 commit comments

Comments
 (0)