diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-05-27 10:16:04 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-05-27 10:16:04 +0000 |
commit | 7a0877c042afed1392a103d18e03b645f87392b8 (patch) | |
tree | 4ee2c5b6225793008e1e34479c83371ff40749a3 /gcc/ada/gcc-interface/trans.c | |
parent | 73cd514ab5ac3d73f0a9e8fcf72fad1a859e5022 (diff) | |
download | gcc-7a0877c042afed1392a103d18e03b645f87392b8.zip gcc-7a0877c042afed1392a103d18e03b645f87392b8.tar.gz gcc-7a0877c042afed1392a103d18e03b645f87392b8.tar.bz2 |
trans.c (Call_to_gnu): Use the unpadded type when putting back an intermediate conversion the type of...
* gcc-interface/trans.c (Call_to_gnu): Use the unpadded type when
putting back an intermediate conversion the type of the actuals.
From-SVN: r271647
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
-rw-r--r-- | gcc/ada/gcc-interface/trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 4df0dfa..e41703b 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -5355,7 +5355,7 @@ Call_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, tree gnu_target, since the parent is a procedure call, so put it back here. Note that we might have a dummy type here if the actual is the dereference of a pointer to it, but that's OK if the formal is passed by reference. */ - tree gnu_actual_type = gnat_to_gnu_type (Etype (gnat_actual)); + tree gnu_actual_type = get_unpadded_type (Etype (gnat_actual)); if (TYPE_IS_DUMMY_P (gnu_actual_type)) gcc_assert (is_true_formal_parm && DECL_BY_REF_P (gnu_formal)); else if (suppress_type_conversion |