Skip IFUNC call for Node3 in fixupMaxVersion

This commit is contained in:
andrew committed 2026-10-27 14:21:58 -04:00
1 parent d71d963d9a
commit 84bf5707f9
1 file changed
+7 -3
+7 -3
View File
@@ -2936,9 +2936,13 @@ void fixupMaxVersion(Node *node, WriteContext *writeContext) {
break; break;
case Type_Node3: { case Type_Node3: {
auto *self3 = static_cast<Node3 *>(node); auto *self3 = static_cast<Node3 *>(node);
max = std::max(max, assume(1 <= self3->numChildren);
horizontalMaxUpTo16(self3->childMaxVersion, assume(self3->numChildren <= 3);
writeContext->zero, self3->numChildren)); InternalVersionT m = self3->childMaxVersion[0];
for (int i = 1; i < self3->numChildren; ++i) {
m = std::max(m, self3->childMaxVersion[i]);
}
max = std::max(max, m);
} break; } break;
case Type_Node16: { case Type_Node16: {
auto *self16 = static_cast<Node16 *>(node); auto *self16 = static_cast<Node16 *>(node);