Skip to content

Commit b47b64a

Browse files
committed
[FailureDiagnostic] Make getConstraintLocator const
1 parent d63332f commit b47b64a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/CSDiagnostics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class FailureDiagnostic {
149149
/// path, uniqued and automatically calculate the summary flags
150150
ConstraintLocator *
151151
getConstraintLocator(Expr *anchor,
152-
ArrayRef<ConstraintLocator::PathElement> path) {
152+
ArrayRef<ConstraintLocator::PathElement> path) const {
153153
return CS.getConstraintLocator(anchor, path);
154154
}
155155

lib/Sema/ConstraintSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ class ConstraintSystem {
18921892
/// path, uniqued and automatically infer the summary flags
18931893
ConstraintLocator *
18941894
getConstraintLocator(Expr *anchor,
1895-
ArrayRef<ConstraintLocator::PathElement> path) const;
1895+
ArrayRef<ConstraintLocator::PathElement> path);
18961896

18971897
/// Retrieve the constraint locator for the given anchor and
18981898
/// an empty path, uniqued.

0 commit comments

Comments
 (0)