aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-06-27 11:24:45 +0200
committerMartin Liska <marxin@gcc.gnu.org>2014-06-27 09:24:45 +0000
commit807b7d6209c7bd54b4dfc9abdc17f451e71aa648 (patch)
treef1d34832a1df36dc5fc05332f91ff4a37dce3c77 /gcc/tree-ssa-pre.c
parentfcbbf14a65cb7cb5814087870a0ecb47c227592c (diff)
downloadgcc-807b7d6209c7bd54b4dfc9abdc17f451e71aa648.zip
gcc-807b7d6209c7bd54b4dfc9abdc17f451e71aa648.tar.gz
gcc-807b7d6209c7bd54b4dfc9abdc17f451e71aa648.tar.bz2
Fix for devirtualization dump functions
* gimple.h (gimple_location_safe): New function introduced. * cgraphunit.c (walk_polymorphic_call_targets): Usage of gimple_location_safe replaces gimple_location. (gimple_fold_call): Likewise. * ipa-devirt.c (ipa_devirt): Likewise. * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise. * ipa.c (walk_polymorphic_call_targets): Likewise. * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise. From-SVN: r212067
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r--gcc/tree-ssa-pre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 74238de..d05a40b 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -4367,7 +4367,7 @@ eliminate_dom_walker::before_dom_children (basic_block b)
{
if (dump_enabled_p ())
{
- location_t loc = gimple_location (stmt);
+ location_t loc = gimple_location_safe (stmt);
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
"converting indirect call to "
"function %s\n",