aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-06-13 14:16:24 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-06-13 14:16:24 -0700
commitbe8d9ace54533726c45253710ece156e09e147ba (patch)
tree02533991d692a1724bbaa9b2d434441fdd8c6e81 /gcc/explow.c
parentf8bc3f3af46bb6ddad5734ffcddb1e2771fc11b9 (diff)
downloadgcc-be8d9ace54533726c45253710ece156e09e147ba.zip
gcc-be8d9ace54533726c45253710ece156e09e147ba.tar.gz
gcc-be8d9ace54533726c45253710ece156e09e147ba.tar.bz2
* explow.c (set_mem_attributes): Do nothing for NULL type.
From-SVN: r34523
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index 9f7eada..ff4f4c4 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -659,7 +659,15 @@ set_mem_attributes (ref, t, objectp)
tree t;
int objectp;
{
- tree type = TYPE_P (t) ? t : TREE_TYPE (t);
+ tree type;
+
+ /* It can happen that type_for_mode was given a mode for which there
+ is no language-level type. In which case it returns NULL, which
+ we can see here. */
+ if (t == NULL_TREE)
+ return;
+
+ type = TYPE_P (t) ? t : TREE_TYPE (t);
/* Get the alias set from the expression or type (perhaps using a
front-end routine) and then copy bits from the type. */