From: Jeff Law Date: Tue, 1 Feb 2005 03:52:37 +0000 (-0700) Subject: tree-ssa-dom.c (record_cond): Pass correct variable type for last argument to htab_fi... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5746637cfa10affd139b6c49a4e757ae3d5c6022;p=gcc.git tree-ssa-dom.c (record_cond): Pass correct variable type for last argument to htab_find_slot_with_hash. * tree-ssa-dom.c (record_cond): Pass correct variable type for last argument to htab_find_slot_with_hash. From-SVN: r94517 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5320b6dffa6..ceaeae3122a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,10 @@ 2005-01-31 Jeff Law - * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side - effects when optimizing 0 % X. Do not try to optimize X % 0. + * tree-ssa-dom.c (record_cond): Pass correct variable type + for last argument to htab_find_slot_with_hash. + + * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side + effects when optimizing 0 % X. Do not try to optimize X % 0. 2005-01-31 James E. Wilson diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 648ee5625dd..244bfa2b0f0 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -1386,7 +1386,7 @@ record_cond (tree cond, tree value) initialize_hash_element (cond, value, element); slot = htab_find_slot_with_hash (avail_exprs, (void *)element, - element->hash, true); + element->hash, INSERT); if (*slot == NULL) { *slot = (void *) element;