fix code ordering bug in MyCompiler::peek

This commit is contained in:
Joel Dice 2008-04-29 10:55:56 -06:00
parent 377e2864d9
commit 9dafe37ff3

View File

@ -2209,8 +2209,8 @@ class MyCompiler: public Compiler {
virtual Operand* peek(unsigned size UNUSED, unsigned index) {
Stack* s = c.state->stack;
for (unsigned i = index; i > 0;) {
s = s->next;
i -= s->size;
s = s->next;
}
assert(&c, s->size == ceiling(size, BytesPerWord));
return s->value;