def->scope is always non-0
qc-parse.y:
	link defs from child scopes correctly
This commit is contained in:
Bill Currie 2002-06-10 19:07:32 +00:00
parent 0747bcb099
commit a771beed74
2 changed files with 2 additions and 2 deletions

View file

@ -516,7 +516,7 @@ statement_block
current_scope = current_scope->parent;
*current_scope->tail = defs;
while (*current_scope->tail) {
current_scope->tail = &(*current_scope->tail)->next;
current_scope->tail = &(*current_scope->tail)->def_next;
current_scope->num_defs++;
}
$$ = $3;

View file

@ -342,7 +342,7 @@ finish_compilation (void)
}
for (def = pr.scope->head; def; def = def->def_next) {
if (def->scope || def->absolute)
if (def->scope->type < sc_params || def->absolute)
continue;
relocate_refs (def->refs, def->ofs);
}