Skip to content

Commit f3e1d87

Browse files
committed
Concurrency: Fix incorrect isLocalContext() check
1 parent 5b5ac98 commit f3e1d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,7 @@ namespace {
26192619
}
26202620

26212621
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
2622-
if (func->isLocalContext()) {
2622+
if (func->getDeclContext()->isLocalContext()) {
26232623
checkLocalCaptures(func);
26242624
}
26252625

0 commit comments

Comments
 (0)