Pass the correct symbol table to variable traverser

This commit is contained in:
2025-07-03 23:42:25 +02:00
parent f388f1b8d1
commit 181b19eefe

View File

@ -747,7 +747,7 @@ namespace elna::gcc
{ {
this->current_expression = get_inner_alias( this->current_expression = get_inner_alias(
this->info_table->lookup(declaration->identifier.identifier)->is_variable()->symbol, this->info_table->lookup(declaration->identifier.identifier)->is_variable()->symbol,
this->symbols->scope()); this->symbols);
location_t declaration_location = get_location(&declaration->position()); location_t declaration_location = get_location(&declaration->position());
tree declaration_tree = build_decl(declaration_location, VAR_DECL, tree declaration_tree = build_decl(declaration_location, VAR_DECL,