Skip to content

Commit a2f7478

Browse files
committed
Copy parameter identifiers when linking goto models
When we are resolving conflicting names of function and the old function has empty body.
1 parent 12f1571 commit a2f7478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/link_goto_model.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ static bool link_functions(
9797
rename_symbols_in_function(src_func, final_id, rename_symbol);
9898

9999
in_dest_symbol_table.body.swap(src_func.body);
100+
in_dest_symbol_table.parameter_identifiers.swap(
101+
src_func.parameter_identifiers);
100102
in_dest_symbol_table.type=src_func.type;
101103
}
102104
else if(src_func.body.instructions.empty() ||

0 commit comments

Comments
 (0)