diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-05-25 16:51:05 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-05-25 16:51:57 +0200 |
commit | 1d3707a52d6b8a3054248b4291719150937db309 (patch) | |
tree | 9935d766324cdf91c9abab9863d032a92b99e12c /gcc/tree-inline.c | |
parent | 7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12 (diff) | |
download | gcc-1d3707a52d6b8a3054248b4291719150937db309.zip gcc-1d3707a52d6b8a3054248b4291719150937db309.tar.gz gcc-1d3707a52d6b8a3054248b4291719150937db309.tar.bz2 |
Fix thinko in latest change to setup_one_parameter
gcc/
* tree-inline.c (setup_one_parameter): Fix thinko in new condition.
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 8f945b8..1d13e7f 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -3446,7 +3446,7 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn, sure that it cannot be modified from another path in the callee. */ if ((is_gimple_min_invariant (value) || (DECL_P (value) && TREE_READONLY (value)) - || (auto_var_in_fn_p (value, id->src_fn) + || (auto_var_in_fn_p (value, id->dst_fn) && !TREE_ADDRESSABLE (value))) && useless_type_conversion_p (TREE_TYPE (p), TREE_TYPE (value)) /* We have to be very careful about ADDR_EXPR. Make sure |