diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-21 14:15:51 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-21 14:15:51 +0000 |
commit | d5c50c6d76a593a0eef3541709d60c0eafa8a599 (patch) | |
tree | 5e39227a3a423de35133f83f1f9afaea610a8ae1 /gcc/gimple.c | |
parent | 39c7b0333811e650628257eb8ef03881be939cc8 (diff) | |
download | gcc-d5c50c6d76a593a0eef3541709d60c0eafa8a599.tar.gz |
* gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 909091bcfd0..0d28c1b2738 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -1464,7 +1464,8 @@ walk_gimple_op (gimple stmt, walk_tree_fn callback_op, for (i = 0; i < gimple_call_num_args (stmt); i++) { if (wi) - wi->val_only = is_gimple_reg_type (gimple_call_arg (stmt, i)); + wi->val_only + = is_gimple_reg_type (TREE_TYPE (gimple_call_arg (stmt, i))); ret = walk_tree (gimple_call_arg_ptr (stmt, i), callback_op, wi, pset); if (ret) @@ -1476,7 +1477,8 @@ walk_gimple_op (gimple stmt, walk_tree_fn callback_op, if (wi) { wi->is_lhs = true; - wi->val_only = is_gimple_reg_type (gimple_call_lhs (stmt)); + wi->val_only + = is_gimple_reg_type (TREE_TYPE (gimple_call_lhs (stmt))); } ret = walk_tree (gimple_call_lhs_ptr (stmt), callback_op, wi, pset); |