Internals: Cleanup some user() comments. No functional change.

Fixes #8048.
This commit is contained in:
Wilson Snyder
2026-08-08 13:05:05 -04:00
parent 18844537bd
commit 7601011bba
17 changed files with 33 additions and 30 deletions
+2 -2
View File
@@ -3361,6 +3361,7 @@ class RandomizeVisitor final : public VNVisitor {
// AstConstraintForeach::user3p() -> AstNode*. Dist bucket preamble stmts (foreach case)
// AstClass::user4p() -> AstVar*. Constraint mode state variable
// AstVar::user4p() -> AstVar*. Size variable for constrained queues
// AstNodeFTaskRef::user4() -> bool. Processed
// AstMemberSel::user2p() -> AstNodeModule*. Pointer to containing module
// VNUser1InUse m_inuser1; (Allocated for use in RandomizeMarkVisitor)
// VNUser2InUse m_inuser2; (Allocated for use in RandomizeMarkVisitor)
@@ -4586,8 +4587,7 @@ class RandomizeVisitor final : public VNVisitor {
void wrapRandomizeCallWithNullGuard(AstNodeFTaskRef* nodep) {
AstMethodCall* const callp = VN_CAST(nodep, MethodCall);
if (!callp) return;
if (callp->user4()) return;
callp->user4(true);
if (callp->user4SetOnce()) return;
FileLine* const fl = callp->fileline();
AstNodeExpr* const checkp
= new AstNeq{fl, callp->fromp()->cloneTree(false), new AstConst{fl, AstConst::Null{}}};