mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeComplete] Fix crash when completing inside a result builder containing a variable initialized with nil
Resolves rdar://78017503
This commit is contained in:
@@ -4718,6 +4718,9 @@ bool constraints::isStandardComparisonOperator(ASTNode node) {
|
||||
Optional<std::pair<Expr *, unsigned>>
|
||||
ConstraintSystem::isArgumentExpr(Expr *expr) {
|
||||
auto *argList = getParentExpr(expr);
|
||||
if (!argList) {
|
||||
return None;
|
||||
}
|
||||
|
||||
if (isa<ParenExpr>(argList)) {
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user