mirror of
https://github.com/verilator/verilator.git
synced 2026-08-30 01:38:21 +02:00
Internals: Refactor randomization next and nextPhased into shared helpers (#7991 prep) (#8009). No functional change intended.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user