Sema: TypeChecker::computeCaptures() and friends should be static

This commit is contained in:
Slava Pestov
2019-08-06 23:30:29 -04:00
parent 369e31e463
commit c1adfed00d
4 changed files with 29 additions and 26 deletions

View File

@@ -242,7 +242,7 @@ private:
// Captures have to be computed after the closure is type-checked. This
// ensures that the type checker can infer <noescape> for captured values.
TC.computeCaptures(Closure);
TypeChecker::computeCaptures(Closure);
return {false, FinalExpr};
}