diff --git a/src/lpython/python_evaluator.cpp b/src/lpython/python_evaluator.cpp index b056d81711..f11b98d5df 100644 --- a/src/lpython/python_evaluator.cpp +++ b/src/lpython/python_evaluator.cpp @@ -134,7 +134,7 @@ Result PythonCompiler::evaluate( call_run_fn = true; } - ASR::symbol_t *global_underscore_sym = symbol_table->get_symbol("_" + run_fn); + ASR::symbol_t *global_underscore_sym = symbol_table->get_symbol(global_underscore_name); if ((return_type == "struct") && (global_underscore_sym)) { // we compute the offsets of the struct's attribute here // we will be using it later in aggregate_type_to_string to print the struct @@ -266,7 +266,7 @@ Result PythonCompiler::evaluate( ASR::Variable_t *b = al.make_new(); *b = *a; Str s; - s.from_str_view("_"); + s.from_str(al, "_"); b->m_name = s.c_str(al); symbol_table->add_symbol("_", ASR::down_cast((ASR::asr_t*)b)); }