Skip to content

Commit 46964cc

Browse files
committed
Rename result to result_expr to avoid shadowing
result is already a declared Boolean variable.
1 parent e24e948 commit 46964cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/simplify_expr_array.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ bool simplify_exprt::simplify_index(exprt &expr)
200200
plus_exprt final_offset(array.op1(), offset);
201201
simplify_node(final_offset);
202202

203-
exprt result(array.id(), expr.type());
204-
result.add_to_operands(array.op0(), final_offset);
205-
expr.swap(result);
203+
exprt result_expr(array.id(), expr.type());
204+
result_expr.add_to_operands(array.op0(), final_offset);
205+
expr.swap(result_expr);
206206

207207
simplify_rec(expr);
208208

0 commit comments

Comments
 (0)