Commit 67db5eec authored by Matthias Braun's avatar Matthias Braun
Browse files

emitting NoReg is always wrong

[r14827]
parent f2c57dfb
......@@ -86,8 +86,11 @@ const arch_register_t *get_in_reg(ia32_emit_env_t *env, const ir_node *irn,
assert(reg && "no in register found");
/* in case of a joker register: just return a valid register */
if (arch_register_type_is(reg, joker)) {
if(reg == &ia32_gp_regs[REG_GP_NOREG])
panic("trying to emit noreg");
/* in case of unknown register: just return a valid register */
if (reg == &ia32_gp_regs[REG_GP_UKNWN]) {
const arch_register_req_t *req;
/* ask for the requirements */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment