diff --git a/compiler/can/src/reference_matrix.rs b/compiler/can/src/reference_matrix.rs index d0052993e4..7db76dfd26 100644 --- a/compiler/can/src/reference_matrix.rs +++ b/compiler/can/src/reference_matrix.rs @@ -104,6 +104,8 @@ impl ReferenceMatrix { } } + // NOTE: we use -1 to mark nodes that have no predecessors, but are already + // part of an earlier group. That ensures nodes are added to just 1 group let count = preds_map[succ]; preds_map[succ] = -1;