diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 829b9ee328f..c1df45af12a 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13736,11 +13736,8 @@ force_type_die (tree type) else context_die = comp_unit_die; - type_die = lookup_type_die (type); - if (type_die) - return type_die; - gen_type_die (type, context_die); - type_die = lookup_type_die (type); + type_die = modified_type_die (type, TYPE_READONLY (type), + TYPE_VOLATILE (type), context_die); gcc_assert (type_die); } return type_die; |