mirror of https://github.com/YosysHQ/yosys.git
Fix segfault in wreduce
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
e35fe1344d
commit
32ff37bb5a
|
@ -180,6 +180,8 @@ struct WreduceWorker
|
||||||
}
|
}
|
||||||
|
|
||||||
auto info = mi.query(sig_q[i]);
|
auto info = mi.query(sig_q[i]);
|
||||||
|
if (info == nullptr)
|
||||||
|
return;
|
||||||
if (!info->is_output && GetSize(info->ports) == 1 && !keep_bits.count(mi.sigmap(sig_q[i]))) {
|
if (!info->is_output && GetSize(info->ports) == 1 && !keep_bits.count(mi.sigmap(sig_q[i]))) {
|
||||||
remove_init_bits.insert(sig_q[i]);
|
remove_init_bits.insert(sig_q[i]);
|
||||||
sig_d.remove(i);
|
sig_d.remove(i);
|
||||||
|
|
Loading…
Reference in New Issue