isl_schedule_tree_n_children: explicitly handle missing children
commitba82a28447e61ec29cd02c987f3e243d06bf9e37
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Tue, 7 Aug 2018 13:16:41 +0000 (7 15:16 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 25 Aug 2018 08:16:06 +0000 (25 10:16 +0200)
treeb6da8c84e5ad457e1fbf7cfcae7955d90d7a05a2
parent0a50ba880ac8fb3d5f0fa451b7e9f42d090fcad1
isl_schedule_tree_n_children: explicitly handle missing children

The functions isl_*_list_n_* return 0 on invalid (NULL) input,
but isl_schedule_tree_n_children should not rely on this behavior.
Instead, it should handle the absence of children
(in which case the "children" has a valid NULL value) explicitly.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_schedule_tree.c