Fix VHDL code generator crash when a terneray operator has a real operand.
This commit is contained in:
parent
19e266159e
commit
f99ca8672c
|
|
@ -280,6 +280,8 @@ void make_assignment(vhdl_procedural *proc, stmt_container *container,
|
|||
if (ivl_expr_type(rval) == IVL_EX_TERNARY) {
|
||||
rhs = translate_expr(ivl_expr_oper2(rval));
|
||||
rhs2 = translate_expr(ivl_expr_oper3(rval));
|
||||
if (rhs2 == NULL)
|
||||
return;
|
||||
}
|
||||
else
|
||||
rhs = translate_expr(rval);
|
||||
|
|
|
|||
Loading…
Reference in New Issue