2008-08-29 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / mini / cprop.c
index 1696e947303c457730d416be675ab237d0a8b6b3..e1ad2d712d25169357298d579681ba04a7e82bd7 100644 (file)
@@ -77,7 +77,7 @@ local_copy_prop (MonoCompile *cfg, MonoInst *code)
        //g_print ("starting BB\n");
 
        while (ins) {
-               spec = ins_spec [ins->opcode];
+               spec = ins_get_spec (ins->opcode);
                //print_ins (0, ins);
 
                if (spec [MONO_INST_CLOB] != 's' && spec [MONO_INST_CLOB] != '1' && spec [MONO_INST_CLOB] != 'd' && spec [MONO_INST_CLOB] != 'a' && spec [MONO_INST_CLOB] != 'c') {
@@ -115,7 +115,7 @@ local_copy_prop (MonoCompile *cfg, MonoInst *code)
                if (spec [MONO_INST_CLOB] == 'c') {
                        /* this is a call, invalidate all the pairs */
                        acp = NULL;
-               } else if ((ins->opcode) == CEE_BR || (ins->opcode >= CEE_BEQ && ins->opcode <= CEE_BLT) ||
+               } else if ((ins->opcode) == OP_BR || (ins->opcode >= CEE_BEQ && ins->opcode <= CEE_BLT) ||
                                (ins->opcode >= CEE_BNE_UN && ins->opcode <= CEE_BLT_UN)) {
                        acp = NULL; /* invalidate all pairs */
                        /* it's not enough to invalidate the pairs, because we don't always