Skip to content

Commit f5493d7

Browse files
author
Daniel Kroening
committed
fix for parameter names
1 parent cbae5ea commit f5493d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cpp/cpp_typecheck_function.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ void cpp_typecheckt::convert_parameter(
3333
const irep_idt &mode,
3434
code_typet::parametert &parameter)
3535
{
36-
std::string identifier=id2string(parameter.get_identifier());
36+
irep_idt base_name=id2string(parameter.get_base_name());
3737

38-
if(identifier.empty())
38+
if(base_name.empty())
3939
{
40-
identifier="#anon_arg"+i2string(anon_counter++);
41-
parameter.set_base_name(identifier);
40+
base_name="#anon_arg"+i2string(anon_counter++);
41+
parameter.set_base_name(base_name);
4242
}
4343

44-
identifier=cpp_scopes.current_scope().prefix+
45-
id2string(identifier);
44+
irep_idt identifier=cpp_scopes.current_scope().prefix+
45+
id2string(base_name);
4646

4747
parameter.set_identifier(identifier);
4848

0 commit comments

Comments
 (0)