Internals: Refactor randomization next and nextPhased into shared helpers (#7991 prep) (#8009). No functional change intended.

This commit is contained in:
Yilou Wang
2026-07-30 21:41:37 -04:00
committed by GitHub
parent b70696fc0a
commit 99b71a37b7
3 changed files with 292 additions and 282 deletions
+1 -1
View File
@@ -4252,7 +4252,7 @@ class RandomizeVisitor final : public VNVisitor {
AstVar* sizeVarp = VN_CAST(arrVarp->user4p(), Var);
wasCreated = false;
if (!sizeVarp) {
sizeVarp = new AstVar{fl, VVarType::BLOCKTEMP, "__V" + arrVarp->name() + "_size",
sizeVarp = new AstVar{fl, VVarType::MEMBER, "__V" + arrVarp->name() + "_size",
signed32DTypep};
classp->addMembersp(sizeVarp);
m_memberMap.insert(classp, sizeVarp);