diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-06 19:16:59 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-06 19:16:59 +0000 |
commit | 703201ea4e783cc787be9fc2077382bc5e90d697 (patch) | |
tree | 18d4db7d94a72a005e9573b5fdcc75f34cd59b0f /gcc/fold-const.c | |
parent | e78980b724dc1ad0689c40f5936c26356033797a (diff) | |
download | gcc-703201ea4e783cc787be9fc2077382bc5e90d697.zip gcc-703201ea4e783cc787be9fc2077382bc5e90d697.tar.gz gcc-703201ea4e783cc787be9fc2077382bc5e90d697.tar.bz2 |
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 01054d1..0084020 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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)) { |