summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beverify.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 20:37:53 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 21:15:42 +0200
commit8d14210e48e14de3b1d7bca00df590ca92700e0b (patch)
treec6657537705165b724bd831735fb80723f8edb49 /ir/be/beverify.c
parent4652701dd62546a5a9fbcafddb990784e3493631 (diff)
be: Give the none register requirement a register class.
Now register requirements always have have a register class. This is more consistent and removes some null pointer checks.
Diffstat (limited to 'ir/be/beverify.c')
-rw-r--r--ir/be/beverify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beverify.c b/ir/be/beverify.c
index d655d64..cac4230 100644
--- a/ir/be/beverify.c
+++ b/ir/be/beverify.c
@@ -558,7 +558,7 @@ typedef struct be_verify_reg_alloc_env_t {
static void check_output_constraints(be_verify_reg_alloc_env_t *const env, const ir_node *node)
{
arch_register_req_t const *const req = arch_get_irn_register_req(node);
- if (!req->cls)
+ if (!req->cls->regs)
return;
/* verify output register */
@@ -596,7 +596,7 @@ static void check_input_constraints(be_verify_reg_alloc_env_t *const env, ir_nod
env->problem_found = true;
}
- if (req->cls == NULL)
+ if (!req->cls->regs)
continue;
if (req->width > pred_req->width) {