mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Minimize contention on the deps for decls
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user