diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-09-06 19:33:41 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-09-06 19:33:41 +0200 |
commit | 920ea3b8ba3164b61ac9490dfdfceb6936eda6dd (patch) | |
tree | 1f4f0d8643503903630690489d6837dbeb9fcd79 /gcc/function.c | |
parent | 28d67c175f335ac01ddc8d659986a34b281b02e9 (diff) | |
download | gcc-920ea3b8ba3164b61ac9490dfdfceb6936eda6dd.zip gcc-920ea3b8ba3164b61ac9490dfdfceb6936eda6dd.tar.gz gcc-920ea3b8ba3164b61ac9490dfdfceb6936eda6dd.tar.bz2 |
function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P before testing TYPE_TRANSPARENT_AGGR.
* function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
before testing TYPE_TRANSPARENT_AGGR.
* calls.c (initialize_argument_information, load_register_parameters):
Likewise.
From-SVN: r275472
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c index 751d2de3..5351605 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2443,8 +2443,7 @@ assign_parm_find_data_types (struct assign_parm_data_all *all, tree parm, /* If the parm is to be passed as a transparent union or record, use the type of the first field for the tests below. We have already verified that the modes are the same. */ - if ((TREE_CODE (data->arg.type) == UNION_TYPE - || TREE_CODE (data->arg.type) == RECORD_TYPE) + if (RECORD_OR_UNION_TYPE_P (data->arg.type) && TYPE_TRANSPARENT_AGGR (data->arg.type)) data->arg.type = TREE_TYPE (first_field (data->arg.type)); |