Clear out the type encoding def from all types.

The encodings of static types were getting corrupted because their defs
were not necessarily in the same places between compilations when compiling
multiple files.
This commit is contained in:
Bill Currie 2012-11-07 20:33:52 +09:00
parent a3a22f2a1b
commit 7a25283beb

View file

@ -124,6 +124,10 @@ static void
InitData (void)
{
pr_lineno_t *line;
type_t *type;
for (type = pr.types; type; type = type->next)
type->type_def = 0;
if (pr.code) {
codespace_delete (pr.code);