Skip to content

Commit 3e26840

Browse files
Deprecate non-const byte_update_exprt accessors
The non-const accessors which have the same name as the const one shouldn't be used anymore to avoid confusion and unknowningly calling the non-const version.
1 parent 98e1de0 commit 3e26840

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/byte_operators.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ class byte_update_exprt : public ternary_exprt
8787
{
8888
}
8989

90+
DEPRECATED(SINCE(2019, 5, 21, "use set_op or as_const instead"))
9091
exprt &op() { return op0(); }
92+
DEPRECATED(SINCE(2019, 5, 21, "use set_offset or as_const instead"))
9193
exprt &offset() { return op1(); }
94+
DEPRECATED(SINCE(2019, 5, 21, "use set_value or as_const instead"))
9295
exprt &value() { return op2(); }
96+
9397
void set_op(exprt e)
9498
{
9599
op0() = std::move(e);

0 commit comments

Comments
 (0)