aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/utils.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-21 12:57:33 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-21 12:57:33 +0200
commitedf11c635a40c2cfb291089be509b2f31737958b (patch)
tree6b1e7df4ec18e6856743841e233b466dff110414 /kernel/utils.h
parenta7758ef953eccff9295ec9f152ec1b6bef831f89 (diff)
downloadyosys-edf11c635a40c2cfb291089be509b2f31737958b.tar.gz
yosys-edf11c635a40c2cfb291089be509b2f31737958b.tar.bz2
yosys-edf11c635a40c2cfb291089be509b2f31737958b.zip
Assert on new logic loops in "share" pass
Diffstat (limited to 'kernel/utils.h')
-rw-r--r--kernel/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/utils.h b/kernel/utils.h
index 7f10619bc..a03caf804 100644
--- a/kernel/utils.h
+++ b/kernel/utils.h
@@ -155,7 +155,7 @@ struct TopoSort
void sort_worker(const T &n, std::set<T> &marked_cells, std::set<T> &active_cells, std::vector<T> &active_stack)
{
if (active_cells.count(n)) {
- found_loops = false;
+ found_loops = true;
if (analyze_loops) {
std::set<T> loop;
for (int i = SIZE(active_stack)-1; i >= 0; i--) {