aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-10 21:41:52 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-10 21:41:52 +0100
commit5ea2e1fe60872c5d2b20e180a1514a082b6513e4 (patch)
tree8c5586843ff240e1c926dce3e17158b08446c958 /src/check_decl.cpp
parent992cad101c495e9a0c96a46c0eb50f6a59c7e68f (diff)
Minimize mutex usage when in single threaded mode.
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 58e4f0120..8fbcb5e40 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -948,7 +948,7 @@ gb_internal Entity *init_entity_foreign_library(CheckerContext *ctx, Entity *e)
error(ident, "foreign library names must be an identifier");
} else {
String name = ident->Ident.token.string;
- Entity *found = scope_lookup(ctx->scope, name);
+ Entity *found = scope_lookup(ctx->scope, name, ident->Ident.hash);
if (found == nullptr) {
if (is_blank_ident(name)) {