mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 08:33:38 +02:00
Optimize functions inlined from packages in Dfg (#7091)
This commit is contained in:
@@ -274,6 +274,8 @@ private:
|
||||
UASSERT_OBJ(
|
||||
!(v3Global.assertScoped() && m_inScope && nodep->varp() && !nodep->varScopep()), nodep,
|
||||
"VarRef missing VarScope pointer");
|
||||
UASSERT_OBJ(!v3Global.assertScoped() || !nodep->classOrPackagep(), nodep,
|
||||
"VarRef classOrPackagep must be nullptr after V3Scope");
|
||||
if (m_cfuncp) {
|
||||
// Check if variable is an in-scope local, otherwise mark as suspect
|
||||
if (const AstVar* const varp = nodep->varp()) {
|
||||
|
||||
@@ -73,6 +73,7 @@ class ScopeVisitor final : public VNVisitor {
|
||||
"Can't locate class or package scope");
|
||||
scopep = it2->second;
|
||||
}
|
||||
nodep->classOrPackagep(nullptr); // No longer needed after V3Scope
|
||||
// Search up the scope hierarchy for the variable
|
||||
AstVarScope* varscp = nullptr;
|
||||
AstScope* searchScopep = scopep;
|
||||
|
||||
Reference in New Issue
Block a user