make sure an initialized def has the correct source file and line info

This commit is contained in:
Bill Currie 2002-09-07 06:45:51 +00:00
parent 2cd6b68669
commit f6cdbdf63c

View file

@ -223,6 +223,10 @@ get_def (type_t *type, const char *name, scope_t *scope,
return def;
if (def) {
if (storage != st_extern && !def->initialized) {
def->file = pr.source_file;
def->line = pr.source_line;
}
if (!def->external || storage == st_extern)
return def;
} else {