Skip to content

Fix modes in java entry point code #1079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/java_bytecode/java_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ bool java_entry_point(
if(to_code_type(symbol.type).return_type()!=empty_typet())
{
auxiliary_symbolt return_symbol;
return_symbol.mode=ID_C;
return_symbol.mode=ID_java;
return_symbol.is_static_lifetime=false;
return_symbol.name=JAVA_ENTRY_POINT_RETURN_SYMBOL;
return_symbol.base_name="return";
Expand All @@ -536,7 +536,7 @@ bool java_entry_point(
{
// add the exceptional return value
auxiliary_symbolt exc_symbol;
exc_symbol.mode=ID_C;
exc_symbol.mode=ID_java;
exc_symbol.is_static_lifetime=true;
exc_symbol.name=id2string(symbol.name)+EXC_SUFFIX;
exc_symbol.base_name=id2string(symbol.name)+EXC_SUFFIX;
Expand Down
2 changes: 1 addition & 1 deletion src/java_bytecode/java_entry_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ main_function_resultt get_main_symbol(
message_handlert &,
bool allow_no_body=false);

#endif
#endif // CPROVER_JAVA_BYTECODE_JAVA_ENTRY_POINT_H