From 181b19eefea012d36174a3c04ca8f61637e10a9f Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 3 Jul 2025 23:42:25 +0200 Subject: [PATCH] Pass the correct symbol table to variable traverser --- gcc/elna-generic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/elna-generic.cc b/gcc/elna-generic.cc index 056f950..5deffde 100644 --- a/gcc/elna-generic.cc +++ b/gcc/elna-generic.cc @@ -747,7 +747,7 @@ namespace elna::gcc { this->current_expression = get_inner_alias( this->info_table->lookup(declaration->identifier.identifier)->is_variable()->symbol, - this->symbols->scope()); + this->symbols); location_t declaration_location = get_location(&declaration->position()); tree declaration_tree = build_decl(declaration_location, VAR_DECL,