diff options
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 0a0d4d4a51a..6268305c904 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -133,10 +133,14 @@ rtx_unstable_p (rtx x) int rtx_varies_p (rtx x, int for_alias) { - RTX_CODE code = GET_CODE (x); + RTX_CODE code; int i; const char *fmt; + if (!x) + return 0; + + code = GET_CODE (x); switch (code) { case MEM: |