summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-29 00:02:25 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-29 00:02:25 +0000
commit3064b94272037d53a8c9886c3e347c063d2f0a40 (patch)
tree44b9ba0f456c4bbde529572156622d836060ca82 /gcc/print-rtl.c
parent2ccdda1997cc4baf3c10c6fc602c59722b5a3947 (diff)
Make INSN_HAS_LOCATION require an rtx_insn
gcc/ 2014-08-28 David Malcolm <dmalcolm@redhat.com> * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to const rtx_insn *. * print-rtl.c (print_rtx): Add checked cast to const rtx_insn * in invocation of INSN_HAS_LOCATION. From-SVN: r214700
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index be1d01ac6c3..935145b5bd6 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -395,7 +395,7 @@ print_rtx (const_rtx in_rtx)
/* Pretty-print insn locations. Ignore scoping as it is mostly
redundant with line number information and do not print anything
when there is no location information available. */
- if (INSN_HAS_LOCATION (in_rtx))
+ if (INSN_HAS_LOCATION (as_a <const rtx_insn *> (in_rtx)))
{
expanded_location xloc = insn_location (in_rtx);
fprintf (outfile, " %s:%i", xloc.file, xloc.line);