Skip to content

Commit 4201829

Browse files
committed
[CS] Remove assertion that callee locator has an anchor
When computing type relations of code completion items with respect to the context they are used in, we add a `ConstraintKind::Conversion` constraint with an empty constraint locator. This currently crashes in `hasPreconcurrencyCallee`, but actually having a null anchor doesn’t produce any issues.
1 parent ab6faa9 commit 4201829

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ ConstraintLocator *ConstraintSystem::getCalleeLocator(
481481
}
482482
}
483483

484-
assert(bool(anchor) && "Expected an anchor!");
485-
486484
{
487485
// If we have a locator for a member found through key path dynamic member
488486
// lookup, then we need to chop off the elements after the

0 commit comments

Comments
 (0)