aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index c2424fd..6c8a937 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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. */