aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorBen Elliston <bje@gcc.gnu.org>2006-01-12 08:47:31 +1100
committerBen Elliston <bje@gcc.gnu.org>2006-01-12 08:47:31 +1100
commitaf082de3e2d6f8f330380ad00f4efd586fe768dd (patch)
treecaef221afda765c0bd0a7e0dc08d6195940b8ecb /gcc/rtlanal.c
parent27a2694fb9683903ed3b1e39066fbd5bc05d6e17 (diff)
downloadgcc-af082de3e2d6f8f330380ad00f4efd586fe768dd.zip
gcc-af082de3e2d6f8f330380ad00f4efd586fe768dd.tar.gz
gcc-af082de3e2d6f8f330380ad00f4efd586fe768dd.tar.bz2
* rtlanal.c (find_reg_note): Assert insn is not null.
From-SVN: r109605
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 1248d47..490c221 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -1,6 +1,7 @@
-/* Analyze RTL for C-Compiler
+/* Analyze RTL for GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
+ Foundation, Inc.
This file is part of GCC.
@@ -1656,6 +1657,8 @@ find_reg_note (rtx insn, enum reg_note kind, rtx datum)
{
rtx link;
+ gcc_assert (insn);
+
/* Ignore anything that is not an INSN, JUMP_INSN or CALL_INSN. */
if (! INSN_P (insn))
return 0;