Skip to content

Commit 9192175

Browse files
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 46e0b9f commit 9192175

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ const exprt java_bytecode_convert_methodt::variable(
170170
else
171171
{
172172
exprt result=var.symbol_expr;
173-
if(!var.is_parameter)
174-
used_local_names.insert(to_symbol_expr(result));
175173
if(do_cast==CAST_AS_NEEDED && t!=result.type())
176174
result=typecast_exprt(result, t);
177175
return result;

0 commit comments

Comments
 (0)