Skip to content

Commit 04f09d0

Browse files
committed
[ConstraintLocator] Rename isAutoclosureResult to isForAutoclosureResult
1 parent 7679a5a commit 04f09d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,7 @@ ConstraintSystem::matchTypes(Type type1, Type type2, ConstraintKind kind,
30803080
if (kind >= ConstraintKind::Conversion) {
30813081
// It is never legal to form an autoclosure that results in these
30823082
// implicit conversions to pointer types.
3083-
bool isAutoClosureArgument = locator.isAutoclosureResult();
3083+
bool isAutoClosureArgument = locator.isForAutoclosureResult();
30843084

30853085
// Pointer arguments can be converted from pointer-compatible types.
30863086
if (kind >= ConstraintKind::ArgumentConversion) {

lib/Sema/ConstraintLocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ class ConstraintLocatorBuilder {
715715
return (getSummaryFlags() & ConstraintLocator::IsFunctionConversion);
716716
}
717717

718-
bool isAutoclosureResult() const {
718+
bool isForAutoclosureResult() const {
719719
SmallVector<LocatorPathElt, 4> path;
720720
getLocatorParts(path);
721721

0 commit comments

Comments
 (0)