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) {
|
||||
return nullptr;
|
||||
}
|
||||
auto nextChild = getChildGeq(node, index + 1);
|
||||
Node *nextChild = getChildGeq(node, index + 1);
|
||||
if (nextChild != nullptr) {
|
||||
return nextChild;
|
||||
}
|
||||
@@ -1753,7 +1753,7 @@ Node *nextLogical(Node *node) {
|
||||
if (node == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
auto nextChild = getChildGeq(node, index + 1);
|
||||
Node *nextChild = getChildGeq(node, index + 1);
|
||||
if (nextChild != nullptr) {
|
||||
node = nextChild;
|
||||
goto downLeftSpine;
|
||||
|
||||
Reference in New Issue
Block a user