Skip to content

Commit a806a05

Browse files
committed
[CSOptimizer] NFC: Adopt to changes in containsProtocol(...) API
1 parent 5e547c1 commit a806a05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Sema/CSOptimizer.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,9 @@ static void determineBestChoicesInContext(
11211121
return false;
11221122
}
11231123

1124-
return bool(TypeChecker::containsProtocol(candidateType, P,
1125-
/*allowMissing=*/false));
1124+
auto result = TypeChecker::containsProtocol(candidateType, P,
1125+
/*allowMissing=*/false);
1126+
return result.first || result.second;
11261127
});
11271128
}
11281129

0 commit comments

Comments
 (0)