From 6646d96c23467215ae2284060dbf4719c7adac08 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 25 Feb 1999 21:26:06 +0000 Subject: dwarf2out.c (scope_die_for): Set scope_die to comp_unit_die rather than asserting it. * dwarf2out.c (scope_die_for): Set scope_die to comp_unit_die rather than asserting it. From-SVN: r25448 --- gcc/dwarf2out.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 48331b9..2045ff4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -7682,12 +7682,14 @@ scope_die_for (t, context_die) if (i < 0) { - if (scope_die != comp_unit_die - || TREE_CODE_CLASS (TREE_CODE (containing_scope)) != 't') + if (TREE_CODE_CLASS (TREE_CODE (containing_scope)) != 't') abort (); if (debug_info_level > DINFO_LEVEL_TERSE && !TREE_ASM_WRITTEN (containing_scope)) abort (); + + /* If none of the current dies are suitable, we get file scope. */ + scope_die = comp_unit_die; } } -- cgit v1.1