* src/vm/jit/reorder.c (reorder): Iterate to m->basicblockcount + 1,
authortwisti <none@none>
Mon, 7 Aug 2006 16:10:33 +0000 (16:10 +0000)
committertwisti <none@none>
Mon, 7 Aug 2006 16:10:33 +0000 (16:10 +0000)
so we kind of set the last basic block too.

src/vm/jit/reorder.c

index 1b2958b3c4fd7439c47e9ae9f1749a1d262d2248..3eab8f040508698ff4cd032bfcca0e198fc5558d 100644 (file)
@@ -131,7 +131,7 @@ bool reorder(jitdata *jd)
        blocks[0] = true;
        placed++;
 
-       while (placed <= m->basicblockcount) {
+       while (placed <= m->basicblockcount + 1) {
                /* get last instruction of basic block */
 
                iptr = bptr->iinstr + bptr->icount - 1;