aboutsummaryrefslogtreecommitdiff
path: root/gcc/lcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lcm.c')
-rw-r--r--gcc/lcm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/lcm.c b/gcc/lcm.c
index dc03797..25932d1 100644
--- a/gcc/lcm.c
+++ b/gcc/lcm.c
@@ -1269,7 +1269,9 @@ optimize_mode_switching (file)
mode_set = gen_sequence ();
end_sequence ();
- if (NOTE_LINE_NUMBER (ptr->insn_ptr) == NOTE_INSN_BASIC_BLOCK)
+ if (GET_CODE (ptr->insn_ptr) == NOTE
+ && (NOTE_LINE_NUMBER (ptr->insn_ptr)
+ == NOTE_INSN_BASIC_BLOCK))
emit_block_insn_after (mode_set, ptr->insn_ptr,
BASIC_BLOCK (ptr->bbnum));
else