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) { if (def) {
cn = def; cn = def;
} else { } else {
cn = PR_NewDef (pr_immediate_type, "IMMEDIATE", 0); cn = PR_NewDef (type, "IMMEDIATE", 0);
cn->ofs = PR_NewLocation (pr_immediate_type); cn->ofs = PR_NewLocation (type);
pr_global_defs[cn->ofs] = cn; pr_global_defs[cn->ofs] = cn;
} }
cn->initialized = 1; cn->initialized = 1;