mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Improve V3Ast function usage ergonomics (#3650)
Signed-off-by: HungMingWu <[email protected]>
This commit is contained in:
@@ -91,7 +91,7 @@ class AstToDfgVisitor final : public VNVisitor {
|
||||
|
||||
// METHODS
|
||||
void markReferenced(AstNode* nodep) {
|
||||
nodep->foreach<AstVarRef>([this](const AstVarRef* refp) {
|
||||
nodep->foreach([this](const AstVarRef* refp) {
|
||||
// No need to (and in fact cannot) mark variables with unsupported dtypes
|
||||
if (!DfgVertex::isSupportedDType(refp->varp()->dtypep())) return;
|
||||
getNet(refp->varp())->setHasModRefs();
|
||||
|
||||
Reference in New Issue
Block a user