isl_scheduler.c: inter_dim_map: handle NULL input
commitcc1d58fd39b04839d136b68f9850f1939f666eac
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 28 Jul 2017 08:42:22 +0000 (28 10:42 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sun, 30 Jul 2017 10:51:08 +0000 (30 12:51 +0200)
tree6c6927577420143a2f0a6877ba68c8701bbf18c9
parentb10ccf5c0e1c6e50ae0d54db0024588b7b4e4189
isl_scheduler.c: inter_dim_map: handle NULL input

It is not clear if any of these inputs can be NULL
in the current code base, but since the implementation depends
on these inputs not being NULL, it is best to check anyway.
In particular, if graph->lp is NULL, then the allocated isl_dim_map
will be too small for the subsequent operations.

Reported-by: Michael Kruse <MichaelKruse@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_scheduler.c