From: Matthias Braun Date: Wed, 28 Mar 2007 10:39:57 +0000 (+0000) Subject: fix firm backend X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3dc38f8f23569593c030b85e83ecd9174a95bc73;p=libfirm fix firm backend --- diff --git a/ir/be/firm/bearch_firm.c b/ir/be/firm/bearch_firm.c index 606e2430b..8b4b599d4 100644 --- a/ir/be/firm/bearch_firm.c +++ b/ir/be/firm/bearch_firm.c @@ -254,15 +254,12 @@ static const arch_register_req_t firm_std_reg_req = { }; static const arch_register_req_t * -firm_get_irn_reg_req(const void *self, - arch_register_req_t *req, const ir_node *irn, int pos) +firm_get_irn_reg_req(const void *self, const ir_node *irn, int pos) { if(is_firm_be_mode(get_irn_mode(irn))) - memcpy(req, &firm_std_reg_req, sizeof(*req)); - else - req = NULL; + return &firm_std_reg_req; - return req; + return NULL; } struct irn_reg_assoc {