fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR if we are in GIMPLE.

* fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
	if we are in GIMPLE.

From-SVN: r90187
This commit is contained in:
Kazu Hirata 2004-11-06 19:16:59 +00:00 committed by Kazu Hirata
parent e78980b724
commit 703201ea4e
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
* fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
if we are in GIMPLE.
2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
PR rtl-optimization/17933

View File

@ -1978,6 +1978,11 @@ fold_convert (tree type, tree arg)
tree
non_lvalue (tree x)
{
/* While we are in GIMPLE, NON_LVALUE_EXPR doesn't mean anything to
us. */
if (in_gimple_form)
return x;
/* We only need to wrap lvalue tree codes. */
switch (TREE_CODE (x))
{