Skip to content

Do not shadow "resolved" [blocks: #2310] #3377

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
merged 1 commit into from
Nov 12, 2018
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
7 changes: 3 additions & 4 deletions src/goto-programs/remove_const_function_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,11 +697,10 @@ bool remove_const_function_pointerst::try_resolve_dereference(
address_of_exprt address_expr=to_address_of_expr(pointer_val);
bool object_const=false;
expressionst out_object_values;
bool resolved=
try_resolve_expression(
address_expr.object(), out_object_values, object_const);
const bool resolved_address = try_resolve_expression(
address_expr.object(), out_object_values, object_const);

if(resolved)
if(resolved_address)
{
out_expressions.insert(
out_expressions.end(),
Expand Down