Skip to content

Commit ebb0699

Browse files
committed
Verilog: fix synthesis for typecast expression
The operand of a typecast expression was recursed on twice; this removes the second call.
1 parent ea914df commit ebb0699

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/verilog/verilog_synthesis.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ exprt verilog_synthesist::synth_expr(exprt expr, symbol_statet symbol_state)
290290
if(expr.id() == ID_typecast)
291291
{
292292
auto &typecast_expr = to_typecast_expr(expr);
293-
typecast_expr.op() = synth_expr(typecast_expr.op(), symbol_state);
294293

295294
const auto &src_type = typecast_expr.op().type();
296295
const auto &dest_type = typecast_expr.type();

0 commit comments

Comments
 (0)