isl_hash.c: reset the number of entries to 0 when growing the hash table
authorMythri Alle <mythri.allel@gmail.com>
Sun, 8 Jul 2012 14:27:01 +0000 (16:27 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 8 Jul 2012 16:22:50 +0000 (18:22 +0200)
commitcb3a5623eb615fc73b74dfa271795651ed340044
tree3bfa5ed726976be7177fb65a821f0ad125ac5404
parent7e9213eaf6364d5619fca8d230bf1df1b26bdc17
isl_hash.c: reset the number of entries to 0 when growing the hash table

The hash table is grown by creating a new table and adding the entries
of the old table to the new table.  Since the new table starts out as
being empty, the number of entries should be reset to 0.

Not only would the old code result in isl_union_map_n_map returing
the wrong value if the underlying hash table had ever been grown,
it would also result in the table subsequently being grown again
far too early.

Signed-off-by: Mythri Alle <mythri.alle@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_hash.c