Skip to content

Commit a166236

Browse files
committed
Use names compatible with C
1 parent 8b0357d commit a166236

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libasr/pass/pass_list_expr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
152152
*/
153153

154154
SymbolTable* list_section_symtab = al.make_new<SymbolTable>(global_scope);
155-
std::string list_type_name = ASRUtils::type_to_str_python(list_type);
155+
std::string list_type_name = ASRUtils::get_type_code(list_type, true);
156156
std::string fn_name = global_scope->get_unique_name("_lcompilers_list_section_" + list_type_name);
157157
ASR::ttype_t* item_type = ASR::down_cast<ASR::List_t>(list_type)->m_type;
158158
ASR::ttype_t* int_type = ASRUtils::TYPE(ASR::make_Integer_t(
@@ -409,7 +409,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
409409
call_arg.m_value = is_end_present;
410410
args.push_back(al, call_arg);
411411

412-
std::string list_type_name = ASRUtils::type_to_str_python(x->m_type);
412+
std::string list_type_name = ASRUtils::get_type_code(x->m_type, true);
413413
if (list_section_func_map.find(list_type_name) == list_section_func_map.end()) {
414414
create_list_section_func(unit.base.base.loc,
415415
unit.m_global_scope, x->m_type);
@@ -437,7 +437,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
437437
return result_list
438438
*/
439439
SymbolTable* list_concat_symtab = al.make_new<SymbolTable>(global_scope);
440-
std::string list_type_name = ASRUtils::type_to_str_python(list_type);
440+
std::string list_type_name = ASRUtils::get_type_code(list_type, true);
441441
std::string fn_name = global_scope->get_unique_name("_lcompilers_list_concat_" + list_type_name);
442442

443443
Vec<ASR::expr_t*> arg_exprs;
@@ -535,7 +535,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
535535
right_list.loc = x->m_right->base.loc;
536536
right_list.m_value = x->m_right;
537537
args.push_back(al, right_list);
538-
std::string list_type_name = ASRUtils::type_to_str_python(x->m_type);
538+
std::string list_type_name = ASRUtils::get_type_code(x->m_type, true);
539539
if (list_concat_func_map.find(list_type_name) == list_concat_func_map.end()) {
540540
create_concat_function(unit.base.base.loc,
541541
unit.m_global_scope, x->m_type);

0 commit comments

Comments
 (0)