fix obviously wrong call to getTarget() in ValidateReader::read() for LIR_jtbl (r=me)

--HG--
extra : convert_revision : 0a24446567224c42ee3f421627ea644976fea3de
This commit is contained in:
Steven Johnson 2010-01-25 11:56:01 -08:00
parent e0fe64337d
commit 9c26cf7691

View File

@ -3016,7 +3016,7 @@ namespace nanojit
uint32_t tableSize = ins->getTableSize(); uint32_t tableSize = ins->getTableSize();
NanoAssert(tableSize > 0); NanoAssert(tableSize > 0);
for (uint32_t i = 0; i < tableSize; i++) { for (uint32_t i = 0; i < tableSize; i++) {
LIns* target = ins->getTarget(); LIns* target = ins->getTarget(i);
NanoAssert(target); NanoAssert(target);
NanoAssert(target->isop(LIR_label)); NanoAssert(target->isop(LIR_label));
} }