return defs of the correct type

This commit is contained in:
Bill Currie 2001-06-26 17:34:21 +00:00
parent 69f869087b
commit 63ad87db68

View file

@ -213,8 +213,8 @@ PR_ReuseConstant (expr_t *e, def_t *def)
if (def) {
cn = def;
} else {
cn = PR_NewDef (pr_immediate_type, "IMMEDIATE", 0);
cn->ofs = PR_NewLocation (pr_immediate_type);
cn = PR_NewDef (type, "IMMEDIATE", 0);
cn->ofs = PR_NewLocation (type);
pr_global_defs[cn->ofs] = cn;
}
cn->initialized = 1;