3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 18:05:24 +00:00

NULL check before use

This commit is contained in:
Eddie Hung 2019-04-16 12:59:48 -07:00
parent f22aa4422d
commit fed1f0ba63

View file

@ -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);
}
}