diff --git a/polly/include/polly/ScheduleTreeTransform.h b/polly/include/polly/ScheduleTreeTransform.h index ee504c4e5f5244..6bd5a3abf9ea28 100644 --- a/polly/include/polly/ScheduleTreeTransform.h +++ b/polly/include/polly/ScheduleTreeTransform.h @@ -47,9 +47,9 @@ struct ScheduleTreeVisitor { return getDerived().visitSequence(Node.as(), std::forward(args)...); case isl_schedule_node_set: + assert(isl_schedule_node_n_children(Node.get()) >= 2); return getDerived().visitSet(Node.as(), std::forward(args)...); - assert(isl_schedule_node_n_children(Node.get()) >= 2); case isl_schedule_node_leaf: assert(isl_schedule_node_n_children(Node.get()) == 0); return getDerived().visitLeaf(Node.as(),