aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2008-08-13 19:38:39 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2008-08-13 19:38:39 +0000
commit7aec7a38d7283e5eb83db7f0dc9556202214c5f0 (patch)
tree923c9ec3f6319b2aca98cf53c729f7eb221b396c /gcc/gimple.h
parent70a1c2f9595135edb6224c2cc1006968f3416cb2 (diff)
downloadgcc-7aec7a38d7283e5eb83db7f0dc9556202214c5f0.zip
gcc-7aec7a38d7283e5eb83db7f0dc9556202214c5f0.tar.gz
gcc-7aec7a38d7283e5eb83db7f0dc9556202214c5f0.tar.bz2
gimple.h (gimple_call_set_chain): Accept SSA variables.
* gimple.h (gimple_call_set_chain): Accept SSA variables. * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>: Rematerialize the static chain, if any. * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the static chain. From-SVN: r139072
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index 3799e06..2f6af03 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -2013,7 +2013,7 @@ gimple_call_set_chain (gimple gs, tree chain)
GIMPLE_CHECK (gs, GIMPLE_CALL);
gcc_assert (chain == NULL
|| TREE_CODE (chain) == ADDR_EXPR
- || DECL_P (chain));
+ || SSA_VAR_P (chain));
gimple_set_op (gs, 2, chain);
}