From 9c26cf7691b3302a3bb09e38e037025b89aee185 Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Mon, 25 Jan 2010 11:56:01 -0800 Subject: [PATCH] fix obviously wrong call to getTarget() in ValidateReader::read() for LIR_jtbl (r=me) --HG-- extra : convert_revision : 0a24446567224c42ee3f421627ea644976fea3de --- js/src/nanojit/LIR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/nanojit/LIR.cpp b/js/src/nanojit/LIR.cpp index 86780b52355..02866e68b70 100644 --- a/js/src/nanojit/LIR.cpp +++ b/js/src/nanojit/LIR.cpp @@ -3016,7 +3016,7 @@ namespace nanojit uint32_t tableSize = ins->getTableSize(); NanoAssert(tableSize > 0); for (uint32_t i = 0; i < tableSize; i++) { - LIns* target = ins->getTarget(); + LIns* target = ins->getTarget(i); NanoAssert(target); NanoAssert(target->isop(LIR_label)); }