summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/final.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/final.c')
-rw-r--r--contrib/gcc/final.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/gcc/final.c b/contrib/gcc/final.c
index 34eda6c..d86ed5e 100644
--- a/contrib/gcc/final.c
+++ b/contrib/gcc/final.c
@@ -3021,6 +3021,9 @@ get_mem_expr_from_op (op, paddressp)
*paddressp = 0;
+ if (op == NULL)
+ return 0;
+
if (GET_CODE (op) == REG && ORIGINAL_REGNO (op) >= FIRST_PSEUDO_REGISTER)
return REGNO_DECL (ORIGINAL_REGNO (op));
else if (GET_CODE (op) != MEM)
OpenPOWER on IntegriCloud