summaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-21 14:15:51 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-21 14:15:51 +0000
commitd5c50c6d76a593a0eef3541709d60c0eafa8a599 (patch)
tree5e39227a3a423de35133f83f1f9afaea610a8ae1 /gcc/gimple.c
parent39c7b0333811e650628257eb8ef03881be939cc8 (diff)
downloadgcc-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.c6
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);