summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-01 20:29:41 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-01 20:29:41 +0000
commitc8f0c143cfb4c6031a3935dda0121b9dd767db7f (patch)
tree0826c135cf6080d7d9d8e36760a0148c774c4bb7 /gcc/emit-rtl.c
parent5d8c393e1dc0b8df0a62eb3df1c68cb5082ab121 (diff)
downloadgcc-c8f0c143cfb4c6031a3935dda0121b9dd767db7f.tar.gz
* emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index d51481f4d70..3f7fb5f895a 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -3856,7 +3856,8 @@ remove_insn (rtx insn)
}
else if (get_insns () == insn)
{
- PREV_INSN (next) = NULL;
+ if (next)
+ PREV_INSN (next) = NULL;
set_first_insn (next);
}
else