aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-04 15:35:24 +0000
committergingerBill <bill@gingerbill.org>2023-01-04 15:35:24 +0000
commit12e42d92d30b3a9cf4d7bb7bb17a2e031285073b (patch)
tree7f5f5e8684814fd24a2f98e70f4933cfde1a0aa9 /src/llvm_backend_stmt.cpp
parentfaa735d0c745ddc0b550e2a54f10588c873841b7 (diff)
Localize `GenProcsData` to the entity itself
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
-rw-r--r--src/llvm_backend_stmt.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp
index 1660d3487..0e6f75118 100644
--- a/src/llvm_backend_stmt.cpp
+++ b/src/llvm_backend_stmt.cpp
@@ -50,13 +50,11 @@ gb_internal void lb_build_constant_value_decl(lbProcedure *p, AstValueDecl *vd)
continue; // It's an alias
}
- CheckerInfo *info = p->module->info;
DeclInfo *decl = decl_info_of_entity(e);
ast_node(pl, ProcLit, decl->proc_lit);
if (pl->body != nullptr) {
- auto *found = map_get(&info->gen_procs, ident);
- if (found) {
- GenProcsData *gpd = *found;
+ GenProcsData *gpd = e->Procedure.gen_procs;
+ if (gpd) {
rw_mutex_shared_lock(&gpd->mutex);
for (Entity *e : gpd->procs) {
if (!ptr_set_exists(min_dep_set, e)) {