pform_make_var_init(): Remove unnecessary signal look-up by name
`pform_make_var_init()` calls `pform_get_wire_in_scope()` but never uses the result other than checking that the signal exists. But we already know that the signal exists since we only call `pform_make_var_init()` for a freshly created signal. Remove the unnecessary signal look-up by name. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
66a5cfe660
commit
e815d37c25
7
pform.cc
7
pform.cc
|
|
@ -2536,13 +2536,6 @@ void pform_make_var_init(const struct vlltype&li,
|
|||
return;
|
||||
}
|
||||
|
||||
PWire*cur = pform_get_wire_in_scope(name);
|
||||
if (cur == 0) {
|
||||
VLerror(li, "internal error: var_init to non-register?");
|
||||
delete expr;
|
||||
return;
|
||||
}
|
||||
|
||||
PEIdent*lval = new PEIdent(name);
|
||||
FILE_NAME(lval, li);
|
||||
PAssign*ass = new PAssign(lval, expr, !gn_system_verilog());
|
||||
|
|
|
|||
Loading…
Reference in New Issue