Remove unreachable code.
pform_get_or_make_wire() should always return a valid pointer. Replace the
existing unreachable code with an assertion.
(cherry picked from commit 3c23180af3)
This commit is contained in:
parent
56d69f498b
commit
c00104bc50
6
pform.cc
6
pform.cc
|
|
@ -2748,11 +2748,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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue