Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/java_bytecode/java_string_library_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,8 @@ codet java_string_library_preprocesst::make_object_get_class_code(
fun_call.lhs()=class1;
fun_call.arguments().push_back(string1);
code_typet fun_type;
fun_type.return_type()=string1.type();
fun_type.parameters().push_back(code_typet::parametert(string_ptr_type));
fun_type.return_type()=class_type;
fun_call.function().type()=fun_type;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to re-arrange the code so as to set up that type before creating the symbol_exprt above.

code.add(fun_call, loc);

Expand Down