aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
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/rtl.h
parent2ccdda1997cc4baf3c10c6fc602c59722b5a3947 (diff)
downloadgcc-3064b94272037d53a8c9886c3e347c063d2f0a40.zip
gcc-3064b94272037d53a8c9886c3e347c063d2f0a40.tar.gz
gcc-3064b94272037d53a8c9886c3e347c063d2f0a40.tar.bz2
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/rtl.h')
-rw-r--r--gcc/rtl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 1c47c20..1bfb5bc 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1374,7 +1374,7 @@ inline unsigned int& INSN_LOCATION (rtx insn)
return XUINT (insn, 4);
}
-inline bool INSN_HAS_LOCATION (const_rtx insn)
+inline bool INSN_HAS_LOCATION (const rtx_insn *insn)
{
return LOCATION_LOCUS (INSN_LOCATION (insn)) != UNKNOWN_LOCATION;
}