Commit c9b53741 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Remove strange case, which allowed the whole register class, when...

ia32: Remove strange case, which allowed the whole register class, when actually no register is allowed.

This lets the register allocator fail instead of silently generating invalid code.
parent bcf94251
......@@ -66,7 +66,7 @@ static arch_register_req_t const *x86_make_register_req(struct obstack *obst,
if (c->cls == NULL)
return arch_no_register_req;
if (c->allowed_registers == 0 || c->all_registers_allowed)
if (c->all_registers_allowed)
return c->cls->class_req;
arch_register_req_t *const req = (arch_register_req_t*)obstack_alloc(obst, sizeof(req[0]) + sizeof(unsigned));
......
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