summaryrefslogtreecommitdiff
path: root/kernel/utils.h
diff options
context:
space:
mode:
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 7f10619b..a03caf80 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--) {