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:
parent
c6ef2ba809
commit
3c23180af3
6
pform.cc
6
pform.cc
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue