Skip to content

Commit c509ece

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2379 from tautschnig/fix-bswap
Fix bswap_exprt constructor
2 parents ac02bbc + 3126dea commit c509ece

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/std_expr.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,10 @@ class bswap_exprt: public unary_exprt
512512
set_bits_per_byte(bits_per_byte);
513513
}
514514

515-
explicit bswap_exprt(const exprt &_op, std::size_t &_bits_per_byte)
515+
bswap_exprt(const exprt &_op, std::size_t bits_per_byte)
516516
: unary_exprt(ID_bswap, _op, _op.type())
517517
{
518+
set_bits_per_byte(bits_per_byte);
518519
}
519520

520521
std::size_t get_bits_per_byte() const

0 commit comments

Comments
 (0)