Add assertion about result of lpm_to_expr

This commit is contained in:
Nick Gasson 2008-07-13 15:26:03 +01:00
parent e5422dddd2
commit 07c4ff7ea7
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ static vhdl_expr *nexus_to_expr(vhdl_scope *arch_scope, ivl_nexus_t nexus,
else if ((allowed & NEXUS_TO_OTHER) &&
(lpm = ivl_nexus_ptr_lpm(nexus_ptr))) {
vhdl_expr *e = lpm_to_expr(arch_scope, lpm);
if (e)
return e;
assert(e);
return e;
}
else if ((allowed & NEXUS_TO_CONST) &&
(con = ivl_nexus_ptr_con(nexus_ptr))) {