diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-10-02 07:49:32 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-10-02 05:49:32 +0000 |
commit | 9189aff736d51a1884d983010bfebfeb16d57516 (patch) | |
tree | 04212c20c9eee0f3c73e413798e49fe188f784f2 /gcc/ipa.c | |
parent | fe7bf32edf45d01fee099fccdca67dd3a0f0064d (diff) | |
download | gcc-9189aff736d51a1884d983010bfebfeb16d57516.zip gcc-9189aff736d51a1884d983010bfebfeb16d57516.tar.gz gcc-9189aff736d51a1884d983010bfebfeb16d57516.tar.bz2 |
ipa.c (walk_polymorphic_call_targets): Avoid ICE when dumping during WPA.
* ipa.c (walk_polymorphic_call_targets): Avoid ICE when
dumping during WPA.
From-SVN: r215792
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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, |