fixed requirements for Return
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 12 Jan 2006 14:54:42 +0000 (14:54 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 12 Jan 2006 14:54:42 +0000 (14:54 +0000)
ir/be/ia32/bearch_ia32.c

index 2240ca0..f623783 100644 (file)
@@ -123,14 +123,13 @@ static const arch_register_req_t *ia32_get_irn_reg_req(const arch_irn_ops_t *sel
                                        assert(0 && "ProjT(pn_Start_T_args) should not be asked");
                        }
                }
-               else if (get_irn_op(irn) == op_Return && pos >= 0) {
+               else if (get_irn_op(irn) == op_Return && pos > 0) {
                        DBG((mod, LEVEL_1, "returning reqs EAX for %+F\n", irn));
                        memcpy(req, &ia32_default_req_ia32_general_purpose_eax, sizeof(*req));
                }
                else {
                        DBG((mod, LEVEL_1, "returning NULL for %+F (not ia32)\n", irn));
                        req = NULL;
-                       //memcpy(req, &ia32_dummy_register_req, sizeof(*req));
                }
        }