diff options
author | Jeff Law <law@redhat.com> | 2013-03-25 22:00:20 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2013-03-25 22:00:20 -0600 |
commit | dd884525bb9ea7686aff404967e3f9907e28809b (patch) | |
tree | d6232e792e2d3bdd03c4975add8319caaceee8bd /gcc/tree-ssa-dom.c | |
parent | 0051d3ece02591408abed724db15289746992911 (diff) | |
download | gcc-dd884525bb9ea7686aff404967e3f9907e28809b.zip gcc-dd884525bb9ea7686aff404967e3f9907e28809b.tar.gz gcc-dd884525bb9ea7686aff404967e3f9907e28809b.tar.bz2 |
tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing check for INTEGRAL_TYPE_P that was missing due to checking in wrong...
* tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
check for INTEGRAL_TYPE_P that was missing due to checking in wrong
version of prior patch.
From-SVN: r197082
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index a71c6dc..29d2bb4 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -1153,7 +1153,8 @@ record_equivalences_from_incoming_edge (basic_block bb) /* If the constant is in the range of the type of OLD_RHS, then convert the constant and record the equivalence. */ - if (int_fits_type_p (rhs, TREE_TYPE (old_rhs))) + if (INTEGRAL_TYPE_P (TREE_TYPE (old_rhs)) + && int_fits_type_p (rhs, TREE_TYPE (old_rhs))) { tree newval = fold_convert (TREE_TYPE (old_rhs), rhs); record_equality (old_rhs, newval); |