summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-16 20:24:00 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-16 20:24:00 +0000
commit3ac02f2e0e788c526ddb54f650e8d5788697d4ae (patch)
tree2bf541445b89fc7f7f5346d556e98c8237963e2e /gcc/dwarf2out.c
parentbd0f3c409542ce9bd6099e20a4abc2c996bdf34e (diff)
downloadgcc-3ac02f2e0e788c526ddb54f650e8d5788697d4ae.tar.gz
* dwarf2out.c (modified_type_die): Don't assign the qualified die
to the unqualified type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54675 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 3941490109d..18a17e0f4a2 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -7603,11 +7603,11 @@ modified_type_die (type, is_const_type, is_volatile_type, context_die)
}
/* We want to equate the qualified type to the die below. */
- if (qualified_type)
- type = qualified_type;
+ type = qualified_type;
}
- equate_type_number_to_die (type, mod_type_die);
+ if (type)
+ equate_type_number_to_die (type, mod_type_die);
if (item_type)
/* We must do this after the equate_type_number_to_die call, in case
this is a recursive type. This ensures that the modified_type_die