Remove buggy assertion.

If this assert fires, the "this" pointer we pass to it will be a
null pointer, so will cause a null pointer dereference. We've
tested it is not null earlier, so we don't need the assertion.
This commit is contained in:
Martin Whitaker 2021-11-04 17:07:30 +00:00
parent 9cc09b8513
commit 0e3682a127
1 changed files with 0 additions and 1 deletions

View File

@ -647,7 +647,6 @@ void NetScope::evaluate_parameter_logic_(Design*des, param_ref_t cur)
return; return;
NetEConst*val = dynamic_cast<NetEConst*>((*cur).second.val); NetEConst*val = dynamic_cast<NetEConst*>((*cur).second.val);
ivl_assert(*expr, (*cur).second.val);
ivl_assert(*expr, val); ivl_assert(*expr, val);
verinum value = val->value(); verinum value = val->value();