aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-19 19:43:08 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-19 19:43:08 +0000
commited27099755a9d34005b616231546f5ed017c61b9 (patch)
tree2ec40f53d3d2050ba8e44353d526755a9d8f66ef /gcc/cfgrtl.c
parent167b9fae86bca727a17f4d27a84c20bc9f60317a (diff)
downloadgcc-ed27099755a9d34005b616231546f5ed017c61b9.zip
gcc-ed27099755a9d34005b616231546f5ed017c61b9.tar.gz
gcc-ed27099755a9d34005b616231546f5ed017c61b9.tar.bz2
bb_note returns a rtx_note *
2014-08-19 David Malcolm <dmalcolm@redhat.com> * basic-block.h (bb_note): Strengthen return type from rtx to rtx_note *. * sched-int.h (bb_note): Likewise. * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *. From-SVN: r214188
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 5babdf9..c6176a5 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -661,7 +661,7 @@ could_fall_through (basic_block src, basic_block target)
}
/* Return the NOTE_INSN_BASIC_BLOCK of BB. */
-rtx
+rtx_note *
bb_note (basic_block bb)
{
rtx note;
@@ -671,7 +671,7 @@ bb_note (basic_block bb)
note = NEXT_INSN (note);
gcc_assert (NOTE_INSN_BASIC_BLOCK_P (note));
- return note;
+ return as_a <rtx_note *> (note);
}
/* Return the INSN immediately following the NOTE_INSN_BASIC_BLOCK