fix a missed immediate type missmatch case

This commit is contained in:
Bill Currie 2001-11-14 05:08:37 +00:00
parent 42b5a5d150
commit dc80f51d89

View file

@ -183,6 +183,12 @@ PR_ReuseConstant (expr_t *expr, def_t *def)
def->ofs = cn->ofs;
def->initialized = def->constant = 1;
cn = def;
} else {
if (cn->type != type) {
def = PR_NewDef (type, ".imm", 0);
def->ofs = cn->ofs;
cn = def;
}
}
return cn;
}