* fold-const.c (fold_binary): Use code instead of t.
From-SVN: r95970
This commit is contained in:
parent
0022eee395
commit
c933f71e3d
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
(fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
|
||||
SUBREG and MEM, respectively.
|
||||
|
||||
* fold-const.c (fold_binary): Use code instead of t.
|
||||
|
||||
2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* fold-const.c (fold_binary): Avoid directly using the original
|
||||
|
|
|
@ -8727,7 +8727,7 @@ fold_binary (tree expr)
|
|||
/* If this is a comparison of two exprs that look like an
|
||||
ARRAY_REF of the same object, then we can fold this to a
|
||||
comparison of the two offsets. */
|
||||
if (COMPARISON_CLASS_P (t))
|
||||
if (TREE_CODE_CLASS (code) == tcc_comparison)
|
||||
{
|
||||
tree base0, offset0, base1, offset1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue