summaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-02 05:49:32 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-02 05:49:32 +0000
commit28787ac05a1fca1478f5e9025672c7661c5d8a0e (patch)
tree04212c20c9eee0f3c73e413798e49fe188f784f2 /gcc/ipa.c
parent90f9e6d2795462c886161bca9c47c9544e07833c (diff)
downloadgcc-28787ac05a1fca1478f5e9025672c7661c5d8a0e.tar.gz
* ipa.c (walk_polymorphic_call_targets): Avoid ICE when
dumping during WPA. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 3c35e473e97..c8d7ab918da 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -198,7 +198,11 @@ walk_polymorphic_call_targets (hash_set<void *> *reachable_call_targets,
if (dump_enabled_p ())
{
- location_t locus = gimple_location (edge->call_stmt);
+ location_t locus;
+ if (edge->call_stmt)
+ locus = gimple_location (edge->call_stmt);
+ else
+ locus = UNKNOWN_LOCATION;
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, locus,
"devirtualizing call in %s/%i to %s/%i\n",
edge->caller->name (), edge->caller->order,