diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-12 22:07:38 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-12 22:07:38 +0000 |
commit | 2c8db4fe9c5a484bf1a6ab4d51aba82a66d3a2d9 (patch) | |
tree | dbbf869bd2804b20c2c53a1d470bb79db1d3aa46 /gcc/function.c | |
parent | 6e4b8bb7eadebd36c150370f0579a9497e672583 (diff) | |
download | gcc-2c8db4fe9c5a484bf1a6ab4d51aba82a66d3a2d9.tar.gz |
* function.c (aggregate_value_p): VOID_TYPE nodes are never
aggregates.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index b17f360cd77..f31e20da448 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4031,6 +4031,8 @@ aggregate_value_p (exp) tree type = (TYPE_P (exp)) ? exp : TREE_TYPE (exp); + if (TREE_CODE (type) == VOID_TYPE) + return 0; if (RETURN_IN_MEMORY (type)) return 1; /* Types that are TREE_ADDRESSABLE must be constructed in memory, |