On 04/13/2015 05:04 PM, Jason Merrill wrote:
On 04/13/2015 02:01 PM, Aldy Hernandez wrote:
...or perhaps we could change the condition to:
if ((is_cu_die (old_die->die_parent)
+ || old_die->die_parent->die_tag == DW_TAG_module
|| context_die == NULL
Does checking context_die == old_die->die_parent work?
Actually, no. The comment here is saying that we don't want to reuse
the DIE in this case, because we want the DIE with the source location
info to be at CU scope. We only want to reuse if the function is at CU
scope anyway or it's a nested function.
Jason