Internals: Use Var flag instead of magic names. No functional change intended.

This commit is contained in:
Wilson Snyder
2026-04-03 19:05:56 -04:00
parent efd60df2be
commit ed0506ea8d
7 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -611,7 +611,7 @@ class ForkVisitor final : public VNVisitor {
const AstCMethodHard* const methodp = VN_CAST(stmtExprp->exprp(), CMethodHard);
if (!methodp || methodp->name() != "push_back") return false;
const AstVarRef* const queueRefp = VN_CAST(methodp->fromp(), VarRef);
return queueRefp && queueRefp->name().rfind("__VprocessQueue_", 0) == 0;
return queueRefp && queueRefp->varp()->processQueue();
}
static void moveForkSentinelAfterDisableQueuePushes(AstBegin* const beginp) {
AstNode* const firstStmtp = beginp->stmtsp();