Skip to content

Commit 2e31ca6

Browse files
committed
[ConstraintSystem] Use getConstraintLocator directly
1 parent aaacd29 commit 2e31ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ bool MissingCallFailure::diagnoseAsError() {
18371837

18381838
case ConstraintLocator::AutoclosureResult: {
18391839
auto &cs = getConstraintSystem();
1840-
auto loc = cs.getConstraintLocator(getRawAnchor(), path.drop_back());
1840+
auto loc = getConstraintLocator(getRawAnchor(), path.drop_back());
18411841
AutoClosureForwardingFailure failure(cs, loc);
18421842
return failure.diagnoseAsError();
18431843
}

0 commit comments

Comments
 (0)