isl_hash_table_foreach: improve error handling
commit44d82375d7065cb6db3a5a47d6fe464a54a6c4f3
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 11 Apr 2014 17:03:57 +0000 (11 19:03 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 12 Apr 2014 12:11:52 +0000 (12 14:11 +0200)
tree83469303e49292b21f5e9c5dfeab20e9015e5bca
parent2aa90c3eedc8c0121ef11f8032c83251aec009c8
isl_hash_table_foreach: improve error handling

If the construction of an isl_union_map fails, then isl_union_map_free
may be called on a partially constructed isl_union_map.
This function in turn calls isl_hash_table_foreach, which therefore
needs to check if the table has been fully constructed.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_hash.c