Internals: V3Randomize cleanup. No functional change intended (#8443)

Signed-off-by: Kornel Uriasz <[email protected]>
This commit is contained in:
Kornel Uriasz
2026-09-22 06:34:32 -04:00
committed by GitHub
parent e71d4e7fe5
commit a1e6252e77
+3 -3
View File
@@ -1501,10 +1501,10 @@ class ConstraintExprVisitor final : public VNVisitor {
= VN_AS(varp->dtypep()->skipRefp(), UnpackArrayDType)->elementsConst();
sizep = new AstConst{fl, static_cast<uint32_t>(arraySize)};
} else {
AstVarRef* const arraySizeRef = new AstVarRef{fl, varClassp, varp, VAccess::READ};
arraySizeRef->classOrPackagep(classOrPackagep);
AstVarRef* const arraySizeRefp = new AstVarRef{fl, varClassp, varp, VAccess::READ};
arraySizeRefp->classOrPackagep(classOrPackagep);
AstCMethodHard* const dynSizep
= new AstCMethodHard{fl, arraySizeRef, VCMethod::DYN_SIZE, nullptr};
= new AstCMethodHard{fl, arraySizeRefp, VCMethod::DYN_SIZE, nullptr};
dynSizep->dtypeSetUInt32();
sizep = dynSizep;
}