Remove unreachable code.

pform_get_or_make_wire() should always return a valid pointer. Replace the
existing unreachable code with an assertion.
This commit is contained in:
Martin Whitaker 2021-11-07 16:14:30 +00:00
parent c6ef2ba809
commit 3c23180af3
1 changed files with 1 additions and 5 deletions

View File

@ -2784,11 +2784,7 @@ void pform_makewire(const vlltype&li, perm_string name,
list<named_pexpr_t>*attr)
{
PWire*cur = pform_get_or_make_wire(li, name, type, pt, dt);
if (! cur) {
cur = new PWire(name, type, pt, dt);
FILE_NAME(cur, li.text, li.first_line);
}
assert(cur);
bool flag;
switch (dt) {