mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
fix code ordering bug in MyCompiler::peek
This commit is contained in:
parent
377e2864d9
commit
9dafe37ff3
@ -2209,8 +2209,8 @@ class MyCompiler: public Compiler {
|
|||||||
virtual Operand* peek(unsigned size UNUSED, unsigned index) {
|
virtual Operand* peek(unsigned size UNUSED, unsigned index) {
|
||||||
Stack* s = c.state->stack;
|
Stack* s = c.state->stack;
|
||||||
for (unsigned i = index; i > 0;) {
|
for (unsigned i = index; i > 0;) {
|
||||||
s = s->next;
|
|
||||||
i -= s->size;
|
i -= s->size;
|
||||||
|
s = s->next;
|
||||||
}
|
}
|
||||||
assert(&c, s->size == ceiling(size, BytesPerWord));
|
assert(&c, s->size == ceiling(size, BytesPerWord));
|
||||||
return s->value;
|
return s->value;
|
||||||
|
Loading…
Reference in New Issue
Block a user