]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
authorRichard Henderson <rth@redhat.com>
Sun, 19 Aug 2001 09:04:31 +0000 (02:04 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 19 Aug 2001 09:04:31 +0000 (02:04 -0700)
From-SVN: r45030

gcc/ChangeLog
gcc/function.c

index 7936dc28976c34543b25b1735f09b88c519e981d..0970d0202e04a455376069fa9e9ebe75181adecb 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-19  Richard Henderson  <rth@redhat.com>
+
+       * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
+
 2001-08-19  Richard Henderson  <rth@redhat.com>
 
        * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
index c2424fd0732a539f7e708348b5005fcc683ea200..6c8a9374d51b0867d623cf9d721356f311105135 100644 (file)
@@ -2863,7 +2863,7 @@ gen_mem_addressof (reg, decl)
                             REGNO (reg), decl);
 
   /* Calculate this before we start messing with decl's RTL.  */
-  HOST_WIDE_INT set = get_alias_set (decl);
+  HOST_WIDE_INT set = decl ? get_alias_set (decl) : 0;
 
   /* If the original REG was a user-variable, then so is the REG whose
      address is being taken.  Likewise for unchanging.  */