Skip to content

Commit 1139b0e

Browse files
committed
Remove shouldWalkCaptureInitializerExpressions from PreCheckTarget
We walk into PatternBindingDecls, so I don't think there should be any reason we can't walk captures normally (i.e via their PBD).
1 parent 5d7a8a1 commit 1139b0e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Sema/PreCheckTarget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,6 @@ class PreCheckTarget final : public ASTWalker {
11071107

11081108
bool walkToClosureExprPre(ClosureExpr *expr);
11091109

1110-
bool shouldWalkCaptureInitializerExpressions() override { return true; }
1111-
11121110
MacroWalking getMacroWalkingBehavior() const override {
11131111
return MacroWalking::Arguments;
11141112
}

0 commit comments

Comments
 (0)