Skip to content

Commit e59a9d8

Browse files
committed
Concurrency: Fix incorrect isLocalContext() check
1 parent 0c185c4 commit e59a9d8

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
@@ -2633,7 +2633,7 @@ namespace {
26332633
}
26342634

26352635
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
2636-
if (func->isLocalContext()) {
2636+
if (func->getDeclContext()->isLocalContext()) {
26372637
checkLocalCaptures(func);
26382638
}
26392639

0 commit comments

Comments
 (0)