Minimize contention on the deps for decls

This commit is contained in:
gingerBill
2023-01-12 15:38:23 +00:00
parent d6c54148d9
commit e97bf2ef35
4 changed files with 18 additions and 1 deletions

View File

@@ -1608,7 +1608,10 @@ gb_internal bool check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *de
check_scope_usage(ctx->checker, ctx->scope);
add_deps_from_child_to_parent(decl);
if (decl->entity == nullptr) {
// Only care about nested procedure literals
add_deps_from_child_to_parent(decl);
}
return true;
}