3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

Merge pull request #2167 from whitequark/cxxrtl-fix-ndebug

cxxrtl: don't compute vital values in log_assert()
This commit is contained in:
whitequark 2020-06-18 16:57:51 +00:00 committed by GitHub
commit 8344846787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1845,7 +1845,8 @@ struct CxxrtlWorker {
topo_design.edge(cell_module, module); 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()); modules.insert(modules.end(), topo_design.sorted.begin(), topo_design.sorted.end());
if (split_intf) { if (split_intf) {