Skip to content

Commit 7936b57

Browse files
committed
Use shl_overflow_exprt in simplify_overflow_binary
1 parent 24c9da7 commit 7936b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/simplify_expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ simplify_exprt::simplify_overflow_binary(const binary_overflow_exprt &expr)
22302230
no_overflow_result = *op0_value - *op1_value;
22312231
else if(can_cast_expr<mult_overflow_exprt>(expr))
22322232
no_overflow_result = *op0_value * *op1_value;
2233-
else if(expr.id() == ID_overflow_shl)
2233+
else if(can_cast_expr<shl_overflow_exprt>(expr))
22342234
no_overflow_result = *op0_value << *op1_value;
22352235
else
22362236
UNREACHABLE;

0 commit comments

Comments
 (0)