Skip to content

Commit 712fed1

Browse files
smowtonDaniel Kroening
authored and
Daniel Kroening
committed
Do not add named vars to used_local_names
Commit 67f4019 accidentally reverted java_bytecode_convert_methodt::variable to an earlier version. This restores the version as of branch smowton/find_scopes_for_anonymous_variables Fixes failure of test cbmc-java/inferlexicalscope1
1 parent ddc75af commit 712fed1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ const exprt java_bytecode_convert_methodt::variable(
171171
else
172172
{
173173
exprt result=var.symbol_expr;
174-
if(!var.is_parameter)
175-
used_local_names.insert(to_symbol_expr(result));
176174
if(do_cast==CAST_AS_NEEDED && t!=result.type())
177175
result=typecast_exprt(result, t);
178176
return result;

0 commit comments

Comments
 (0)