nullptr check
authorEddie Hung <eddie@fpgeh.com>
Tue, 25 Jun 2019 06:37:01 +0000 (23:37 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 25 Jun 2019 13:06:32 +0000 (06:06 -0700)
passes/techmap/abc9.cc

index cd79544270845054acbbb3cedf5f328190ab08d0..52ca47a4941a839e52579e66f7868374ba8181c9 100644 (file)
@@ -124,6 +124,7 @@ void handle_loops(RTLIL::Design *design)
                                RTLIL::SigSpec sig;
                                for (auto b : it->second) {
                                        Wire *w = b.wire;
+                                       if (!w) continue;
                                        if (w->port_output) {
                                                log_assert(w->get_bool_attribute("\\abc_scc_break"));
                                                w = module->wire(stringf("%s.abci", w->name.c_str()));