Skip to content

Commit 335d9b5

Browse files
tautschnigDaniel Kroening
authored andcommitted
C++ front-end: parameter symbols are file- and thread-local
As global symbols they wouldn't be amenable to constant propagation in multi-threaded contexts.
1 parent ba576c4 commit 335d9b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cpp/cpp_typecheck_function.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,15 @@ void cpp_typecheckt::convert_parameter(
4141
if(!lookup(identifier, check_symbol))
4242
return;
4343

44-
symbolt symbol;
44+
parameter_symbolt symbol;
4545

4646
symbol.name=identifier;
4747
symbol.base_name=parameter.get_base_name();
4848
symbol.location=parameter.source_location();
4949
symbol.mode = current_mode;
5050
symbol.module=module;
5151
symbol.type=parameter.type();
52-
symbol.is_state_var=true;
5352
symbol.is_lvalue=!is_reference(symbol.type);
54-
symbol.is_parameter=true;
5553

5654
INVARIANT(!symbol.base_name.empty(), "parameter has base name");
5755

0 commit comments

Comments
 (0)