dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when...

2013-12-02 Sterling Augustine  <saugustine@google.com>

        * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
        when there isn't a skeleton die.

From-SVN: r205603
This commit is contained in:
Sterling Augustine 2013-12-02 22:10:44 +00:00 committed by Sterling Augustine
parent cdb02ac743
commit 858c19053b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-12-02 Sterling Augustine  <saugustine@google.com>
* dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
when there isn't a skeleton die.
2013-12-02 Marek Polacek <polacek@redhat.com>
PR sanitizer/59353

View File

@ -9293,7 +9293,7 @@ output_pubnames (vec<pubname_entry, va_gc> *names)
if (type_node != NULL)
die_offset = (type_node->skeleton_die != NULL
? type_node->skeleton_die->die_offset
: 0);
: comp_unit_die ()->die_offset);
}
output_pubname (die_offset, pub);