Improve next{Physical,Logical} codegen

This commit is contained in:
2024-11-09 13:21:36 -08:00
parent 3c44614311
commit f85b92f8db
+2 -2
View File
@@ -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;