[amd64] Fix a simple peephole opt broken by the OP_IL_SEQ_POINT changes.
authorZoltan Varga <vargaz@gmail.com>
Fri, 12 Dec 2014 00:30:07 +0000 (19:30 -0500)
committerZoltan Varga <vargaz@gmail.com>
Fri, 12 Dec 2014 00:30:07 +0000 (19:30 -0500)
mono/mini/mini-amd64.c

index 61990fa3bd28f51d11045cc6ca8d3d8f0655166b..88b329172faa10ba10286ae47e570b14264b14ee 100755 (executable)
@@ -6933,6 +6933,11 @@ mono_arch_emit_prolog (MonoCompile *cfg)
                for (i = 0; next && i < sig->param_count + sig->hasthis; ++i) {
                        ArgInfo *ainfo = cinfo->args + i;
                        gboolean match = FALSE;
+
+                       while (next && next->opcode == OP_IL_SEQ_POINT)
+                               next = next->next;
+                       if (!next)
+                               break;
                        
                        ins = cfg->args [i];
                        if (ins->opcode != OP_REGVAR) {