Skip to content

Commit ce97967

Browse files
tautschnigDaniel Kroening
authored and
Daniel Kroening
committed
Construct typecast_exprt in a non-deprecated way
The default constructor is deprecated.
1 parent 89fa27c commit ce97967

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,8 +1441,7 @@ void smt2_convt::convert_expr(const exprt &expr)
14411441
// the arguments of the shift need to have the same width
14421442
out << "(bvlshr ";
14431443
flatten2bv(extractbit_expr.src());
1444-
typecast_exprt tmp(extractbit_expr.src().type());
1445-
tmp.op0() = extractbit_expr.index();
1444+
typecast_exprt tmp(extractbit_expr.index(), extractbit_expr.src().type());
14461445
convert_expr(tmp);
14471446
out << ")) bin1)"; // bvlshr, extract, =
14481447
}

0 commit comments

Comments
 (0)