From 07c4ff7ea75862a834df891b4de50c3e381b7795 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 13 Jul 2008 15:26:03 +0100 Subject: [PATCH] Add assertion about result of lpm_to_expr --- tgt-vhdl/scope.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgt-vhdl/scope.cc b/tgt-vhdl/scope.cc index 3aba665dc..f1a23536a 100644 --- a/tgt-vhdl/scope.cc +++ b/tgt-vhdl/scope.cc @@ -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))) {