mirror of https://github.com/YosysHQ/yosys.git
cxxrtl: don't compute vital values in log_assert().
This breaks NDEBUG builds. Fixes #2166.
This commit is contained in:
parent
334ec5fa0a
commit
3c4e974d7b
|
@ -1839,7 +1839,8 @@ struct CxxrtlWorker {
|
|||
topo_design.edge(cell_module, module);
|
||||
}
|
||||
}
|
||||
log_assert(topo_design.sort());
|
||||
bool no_loops = topo_design.sort();
|
||||
log_assert(no_loops);
|
||||
modules.insert(modules.end(), topo_design.sorted.begin(), topo_design.sorted.end());
|
||||
|
||||
if (split_intf) {
|
||||
|
|
Loading…
Reference in New Issue