Skip to content

Commit ac53f89

Browse files
committed
Sema: Use a more specific type for ClosuresWithUncomputedCaptures
1 parent 809a6dc commit ac53f89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/TypeChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static void typeCheckFunctionsAndExternalDecls(SourceFile &SF, TypeChecker &TC)
554554
TC.DelayedCircularityChecks.clear();
555555

556556
// Compute captures for functions and closures we visited.
557-
for (AnyFunctionRef closure : TC.ClosuresWithUncomputedCaptures) {
557+
for (auto *closure : TC.ClosuresWithUncomputedCaptures) {
558558
TC.computeCaptures(closure);
559559
}
560560
TC.ClosuresWithUncomputedCaptures.clear();

lib/Sema/TypeChecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ class TypeChecker final : public LazyResolver {
557557

558558
/// A list of closures for the most recently type-checked function, which we
559559
/// will need to compute captures for.
560-
std::vector<AnyFunctionRef> ClosuresWithUncomputedCaptures;
560+
std::vector<AbstractClosureExpr *> ClosuresWithUncomputedCaptures;
561561

562562
/// Local functions that have been captured before their definitions.
563563
///

0 commit comments

Comments
 (0)