diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-10 21:41:52 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-10 21:41:52 +0100 |
| commit | 5ea2e1fe60872c5d2b20e180a1514a082b6513e4 (patch) | |
| tree | 8c5586843ff240e1c926dce3e17158b08446c958 /src/parser.cpp | |
| parent | 992cad101c495e9a0c96a46c0eb50f6a59c7e68f (diff) | |
Minimize mutex usage when in single threaded mode.
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index a7006dd39..a32494c05 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -750,6 +750,7 @@ gb_internal Ast *ast_matrix_index_expr(AstFile *f, Ast *expr, Token open, Token gb_internal Ast *ast_ident(AstFile *f, Token token) { Ast *result = alloc_ast_node(f, Ast_Ident); result->Ident.token = token; + result->Ident.hash = string_hash(token.string); return result; } |