mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Fixed ConstPool traversing bug.
This commit is contained in:
@@ -128,9 +128,12 @@ struct ConstPoolTree {
|
|||||||
if (link != NULL) {
|
if (link != NULL) {
|
||||||
ASMJIT_ASSERT(top != kHeightLimit);
|
ASMJIT_ASSERT(top != kHeightLimit);
|
||||||
stack[top++] = node;
|
stack[top++] = node;
|
||||||
|
|
||||||
|
node = link;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_Visit:
|
||||||
visitor.visit(node);
|
visitor.visit(node);
|
||||||
link = node->_link[1];
|
link = node->_link[1];
|
||||||
|
|
||||||
@@ -143,6 +146,7 @@ struct ConstPoolTree {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
node = stack[--top];
|
node = stack[--top];
|
||||||
|
goto _Visit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user