Some small fixes to make clang-analyze happy.

This commit is contained in:
Matthias Koefferlein 2020-04-26 09:33:10 +02:00
parent c6b5d2f8d2
commit 15567d3d27
2 changed files with 5 additions and 2 deletions

View File

@ -358,8 +358,10 @@ void LayoutToNetlistStandardReader::read_netlist (db::Netlist *netlist, db::Layo
dm->set_name (name);
netlist->add_device_abstract (dm);
db::cell_index_type ci = l2n->internal_layout ()->add_cell (name.c_str ());
dm->set_cell_index (ci);
if (l2n) {
db::cell_index_type ci = l2n->internal_layout ()->add_cell (name.c_str ());
dm->set_cell_index (ci);
}
std::string cls;
read_word_or_quoted (cls);

View File

@ -1930,6 +1930,7 @@ property_getter_impl (int mid, PyObject *self)
// a signal getter is implemented as returning a proxy object for the signal which allows manipulation
// of the signal
tl_assert (p != 0); // no static signals
return PYASignal::create (self, p->signal_handler (meth));
} else {