diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 7bd67e08f..d64a37bb8 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1152,6 +1152,9 @@ bool RTLIL::SigSpec::parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::stri continue; } + if (module == NULL) + return false; + if (netname[0] != '$' && netname[0] != '\\') netname = "\\" + netname; |