Added a const
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Wed, 15 Mar 2006 16:25:53 +0000 (16:25 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Wed, 15 Mar 2006 16:25:53 +0000 (16:25 +0000)
ir/be/bechordal.c

index 698ce8d..81ac0a1 100644 (file)
@@ -334,7 +334,7 @@ static ir_node *handle_constraints(be_chordal_alloc_env_t *alloc_env, ir_node *i
                for(i = 0, n_alloc = 0; i < insn->n_ops; ++i) {
                        operand_t *op = &insn->ops[i];
                        if(arch_register_req_is(&op->req, limited) && arch_irn_consider_in_reg_alloc(aenv, env->cls, op->carrier)) {
-                               arch_register_t *reg = arch_get_irn_register(aenv, op->carrier);
+                               const arch_register_t *reg = arch_get_irn_register(aenv, op->carrier);
 
                                pmap_insert(partners, op->carrier, op->partner ? op->partner->carrier : NULL);
                                alloc_nodes[n_alloc] = op->carrier;