aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 935145b..80ec96e 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -392,12 +392,14 @@ print_rtx (const_rtx in_rtx)
if (i == 4 && INSN_P (in_rtx))
{
#ifndef GENERATOR_FILE
+ const rtx_insn *in_insn = as_a <const rtx_insn *> (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 (as_a <const rtx_insn *> (in_rtx)))
+ if (INSN_HAS_LOCATION (in_insn))
{
- expanded_location xloc = insn_location (in_rtx);
+ expanded_location xloc = insn_location (in_insn);
fprintf (outfile, " %s:%i", xloc.file, xloc.line);
}
#endif