File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -831,16 +831,8 @@ void java_string_library_preprocesst::code_assign_java_string_to_string_expr(
831
831
{
832
832
PRECONDITION (implements_java_char_sequence_pointer (rhs.type ()));
833
833
834
- typet deref_type;
835
- if (rhs.type ().subtype ().id () == ID_struct_tag)
836
- deref_type =
837
- symbol_table
838
- .lookup_ref (to_struct_tag_type (rhs.type ().subtype ()).get_identifier ())
839
- .type ;
840
- else
841
- deref_type=rhs.type ().subtype ();
842
-
843
- const dereference_exprt deref = checked_dereference (rhs, deref_type);
834
+ const dereference_exprt deref =
835
+ checked_dereference (rhs, rhs.type ().subtype ());
844
836
845
837
// Although we should not reach this code if rhs is null, the association
846
838
// `pointer -> length` is added to the solver anyway, so we have to make sure
You can’t perform that action at this time.
0 commit comments