reload1.c (elimination_effects): Fix typo in recent change.

* reload1.c (elimination_effects): Fix typo in recent change.

From-SVN: r171788
This commit is contained in:
Jeff Law 2011-03-31 09:55:19 -06:00 committed by Jeff Law
parent f52d97dada
commit 10c519833f
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
2011-03-31 Jeff Law <law@redhat.com>
* reload1.c (elimination_effects): Fix typo in recent change.
* tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
typo potentially leading to null pointer dereference.

View File

@ -2997,7 +2997,7 @@ elimination_effects (rtx x, enum machine_mode mem_mode)
}
else if (reg_renumber[regno] < 0
&& reg_equiv_constant (0)
&& reg_equivs != 0
&& reg_equiv_constant (regno)
&& ! function_invariant_p (reg_equiv_constant (regno)))
elimination_effects (reg_equiv_constant (regno), mem_mode);