diff --git a/elab_pexpr.cc b/elab_pexpr.cc index 1231119a7..9d3cb8d69 100644 --- a/elab_pexpr.cc +++ b/elab_pexpr.cc @@ -220,6 +220,7 @@ NetExpr*PEIdent::elaborate_pexpr(Design*des, NetScope*scope) const list tmp = eval_scope_path(des, scope, oldpath); pscope = des->find_scope(scope, tmp); } + ivl_assert(*this, pscope); const NetExpr*ex_msb; const NetExpr*ex_lsb;