Use isl_stat as return value for isl_val_get_num_isl_int
commit2000b83ada1fdfebece25e2a8daca76e0a300fcf
authorTobias Grosser <tobias@grosser.es>
Thu, 7 Jun 2018 07:23:30 +0000 (7 09:23 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Tue, 12 Jun 2018 21:00:14 +0000 (12 23:00 +0200)
tree5ff7d0e795ece9d4c2a2e751c4cd794e551b5fea
parent9f663ab9e19a4a91779f1c6f75fece9d58fce2ab
Use isl_stat as return value for isl_val_get_num_isl_int

This function was overlooked in 370a8b7d (introduce isl_bool and
isl_stat return types, Mon May 4 09:45:16 2015 +0200).  By making
isl_val_get_num_isl_int return an isl_stat, implicit int to enum
conversions in isl_coalesce.c:shift_if_cst_int are avoided, which
triggered static analysis warnings due to the converted int potentially
being beyond the range of the isl_enum.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_val.c
isl_val_private.h