mirror of https://github.com/YosysHQ/yosys.git
NULL check before use
This commit is contained in:
parent
f22aa4422d
commit
fed1f0ba63
|
@ -231,7 +231,7 @@ struct XAigerWriter
|
|||
co_bits.emplace_back(b, 0);
|
||||
else {
|
||||
output_bits.insert(b);
|
||||
if (!b.wire->port_input)
|
||||
if (b.wire && !b.wire->port_input)
|
||||
unused_bits.erase(b);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue