From: Eddie Hung Date: Wed, 27 Nov 2019 08:51:39 +0000 (-0800) Subject: Check for nullptr X-Git-Tag: working-ls180~778^2~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb05fe0f70039077bdc1c72f0e2121be6eb7835b;p=yosys.git Check for nullptr --- diff --git a/passes/hierarchy/submod.cc b/passes/hierarchy/submod.cc index 349483778..7b5e110cb 100644 --- a/passes/hierarchy/submod.cc +++ b/passes/hierarchy/submod.cc @@ -141,7 +141,7 @@ struct SubmodWorker else { auto sig = sigmap(wire); for (auto c : sig.chunks()) - if (c.wire->port_output) { + if (c.wire && c.wire->port_output) { flags.is_ext_used = true; break; }