We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb04729 commit 0c185c4Copy full SHA for 0c185c4
lib/Sema/TypeCheckConcurrency.cpp
@@ -2625,6 +2625,13 @@ namespace {
2625
}
2626
2627
PreWalkAction walkToDeclPre(Decl *decl) override {
2628
+ // Don't walk into local types because nothing in them can
2629
+ // change the outcome of our analysis, and we don't want to
2630
+ // assume things there have been type checked yet.
2631
+ if (isa<TypeDecl>(decl)) {
2632
+ return Action::SkipChildren();
2633
+ }
2634
+
2635
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
2636
if (func->isLocalContext()) {
2637
checkLocalCaptures(func);
0 commit comments