forked from weaselab/conflict-set
Improve next{Physical,Logical} codegen
This commit is contained in:
+2
-2
@@ -1734,7 +1734,7 @@ Node *nextPhysical(Node *node) {
|
|||||||
if (node == nullptr) {
|
if (node == nullptr) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto nextChild = getChildGeq(node, index + 1);
|
Node *nextChild = getChildGeq(node, index + 1);
|
||||||
if (nextChild != nullptr) {
|
if (nextChild != nullptr) {
|
||||||
return nextChild;
|
return nextChild;
|
||||||
}
|
}
|
||||||
@@ -1753,7 +1753,7 @@ Node *nextLogical(Node *node) {
|
|||||||
if (node == nullptr) {
|
if (node == nullptr) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto nextChild = getChildGeq(node, index + 1);
|
Node *nextChild = getChildGeq(node, index + 1);
|
||||||
if (nextChild != nullptr) {
|
if (nextChild != nullptr) {
|
||||||
node = nextChild;
|
node = nextChild;
|
||||||
goto downLeftSpine;
|
goto downLeftSpine;
|
||||||
|
|||||||
Reference in New Issue
Block a user