Add assertion about result of lpm_to_expr
This commit is contained in:
parent
e5422dddd2
commit
07c4ff7ea7
|
|
@ -81,8 +81,8 @@ static vhdl_expr *nexus_to_expr(vhdl_scope *arch_scope, ivl_nexus_t nexus,
|
||||||
else if ((allowed & NEXUS_TO_OTHER) &&
|
else if ((allowed & NEXUS_TO_OTHER) &&
|
||||||
(lpm = ivl_nexus_ptr_lpm(nexus_ptr))) {
|
(lpm = ivl_nexus_ptr_lpm(nexus_ptr))) {
|
||||||
vhdl_expr *e = lpm_to_expr(arch_scope, lpm);
|
vhdl_expr *e = lpm_to_expr(arch_scope, lpm);
|
||||||
if (e)
|
assert(e);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
else if ((allowed & NEXUS_TO_CONST) &&
|
else if ((allowed & NEXUS_TO_CONST) &&
|
||||||
(con = ivl_nexus_ptr_con(nexus_ptr))) {
|
(con = ivl_nexus_ptr_con(nexus_ptr))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue