File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -2938,23 +2938,6 @@ bool ConstraintSystem::hasPreconcurrencyCallee(
2938
2938
return calleeOverload->choice.getDecl()->preconcurrency();
2939
2939
}
2940
2940
2941
- /// Determines whether a DeclContext is preconcurrency, using information
2942
- /// tracked by the solver to aid in answering that.
2943
- static bool isPreconcurrency(ConstraintSystem &cs, DeclContext *dc) {
2944
- if (auto *decl = dc->getAsDecl())
2945
- return decl->preconcurrency();
2946
-
2947
- if (auto *ce = dyn_cast<ClosureExpr>(dc)) {
2948
- return ClosureIsolatedByPreconcurrency{cs}(ce);
2949
- }
2950
-
2951
- if (auto *autoClos = dyn_cast<AutoClosureExpr>(dc)) {
2952
- return isPreconcurrency(cs, autoClos->getParent());
2953
- }
2954
-
2955
- llvm_unreachable("unhandled DeclContext kind in isPreconcurrency");
2956
- }
2957
-
2958
2941
ConstraintSystem::TypeMatchResult
2959
2942
ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
2960
2943
ConstraintKind kind, TypeMatchOptions flags,
You can’t perform that action at this time.
0 commit comments