* src/vm/jit/stack.c (stack_javalocals_store): Added an assert.
authoredwin <none@none>
Tue, 17 Apr 2007 19:57:55 +0000 (19:57 +0000)
committeredwin <none@none>
Tue, 17 Apr 2007 19:57:55 +0000 (19:57 +0000)
src/vm/jit/stack.c

index 1ea4ab064885a0789c889da1872b9cf1a821a019..ae85410020b02019f7edc0ede3eaeb369625009c 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: stack.c 7736 2007-04-17 19:24:05Z edwin $
+   $Id: stack.c 7737 2007-04-17 19:57:55Z edwin $
 
 */
 
@@ -4860,6 +4860,7 @@ void stack_javalocals_store(instruction *iptr, s4 *javalocals)
        j = iptr->sx.s23.s3.javaindex;
 
        if (j != UNUSED) {
+               assert(j >= 0);
                if (iptr->flags.bits & INS_FLAG_RETADDR)
                        javalocals[j] = iptr->sx.s23.s2.retaddrnr;
                else