Fix large array initialization (#6669)

This commit is contained in:
Artur Bieniek
2025-11-10 09:19:08 -05:00
committed by GitHub
parent 6e05361318
commit 19bbeb24a6
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -254,6 +254,7 @@ class SliceVisitor final : public VNVisitor {
const int elementLimit = v3Global.opt.fSliceElementLimit();
if (elements > elementLimit && elementLimit > 0) {
++m_statSliceElementSkips;
m_okInitArray = true; // VL_RESTORER in visit(AstNodeAssign)
return false;
}