diff options
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 14f08eb..e0adb53 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -540,7 +540,8 @@ remove_scope_notes () if (PREV_INSN (x)) { NEXT_INSN (PREV_INSN (x)) = next; - PREV_INSN (next) = PREV_INSN (x); + if (next) + PREV_INSN (next) = PREV_INSN (x); NEXT_INSN (x) = NULL; PREV_INSN (x) = NULL; |