aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
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 2cb95949c..77f1c2cd7 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -291,7 +291,7 @@ void init_entity_foreign_library(Checker *c, Entity *e) {
} else if (ident->kind != AstNode_Ident) {
error(ident, "foreign library names must be an identifier");
} else {
- String name = ident->Ident.string;
+ String name = ident->Ident.token.string;
Entity *found = scope_lookup_entity(c->context.scope, name);
if (found == NULL) {
if (name == "_") {