]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cgraphunit.c
Introduce dump_location_t
[thirdparty/gcc.git] / gcc / cgraphunit.c
index 04b6919be48b8fa9fd709fb126e3653910f3ff23..7cfb8a0f55929ed18bae105fbcfce70fe1de5106 100644 (file)
@@ -928,8 +928,7 @@ walk_polymorphic_call_targets (hash_set<void *> *reachable_call_targets,
            }
           if (dump_enabled_p ())
             {
-             location_t locus = gimple_location_safe (edge->call_stmt);
-             dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, locus,
+             dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, edge->call_stmt,
                               "devirtualizing call in %s to %s\n",
                               edge->caller->name (), target->name ());
            }