Skip to content

Commit cfb757c

Browse files
authored
Merge pull request #3316 from tautschnig/vs-shadow-3
Rename result to result_expr to avoid shadowing [blocks: #2310]
2 parents e24e948 + 46964cc commit cfb757c

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)