Skip to content

Commit 4ecdb60

Browse files
committed
fix for object_address_exprt
The validator for object_address_exprt now asserts the correct number of operands.
1 parent a74e822 commit 4ecdb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/pointer_expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ inline bool can_cast_expr<object_address_exprt>(const exprt &base)
450450

451451
inline void validate_expr(const object_address_exprt &value)
452452
{
453-
validate_operands(value, 1, "object_address must have one operand");
453+
validate_operands(value, 0, "object_address must have zero operands");
454454
}
455455

456456
/// \brief Cast an exprt to an \ref object_address_exprt

0 commit comments

Comments
 (0)