Skip to content

Commit 9c22100

Browse files
committed
Follow address-of-static-struct when picking out useful allocated objects.
1 parent c08416e commit 9c22100

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test_gen/java_test_source_factory.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,7 @@ void reference_factoryt::gather_referenced_symbols(const exprt& rhs, inputst& in
433433
{
434434
forall_operands(op_iter,rhs)
435435
{
436-
if(op_iter->type().id()==ID_pointer ||
437-
(op_iter->type().id()==ID_struct && rhs.id()==ID_address_of))
436+
if(op_iter->type().id()==ID_pointer || rhs.id()==ID_address_of)
438437
{
439438
symbol_exprt underlying=try_find_underlying_symbol_expr(*op_iter);
440439
if(underlying!=symbol_exprt())

0 commit comments

Comments
 (0)