mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Cleanup code duplication. No functional change intended.
This commit is contained in:
+1
-3
@@ -698,9 +698,7 @@ void connectPort(AstNodeModule* modp, AstVar* nodep, AstNodeExpr* pinExprp) {
|
||||
|
||||
const auto pinRefAsExpr = [&](VAccess access) -> AstNodeExpr* {
|
||||
if (const AstVarRef* const vrp = VN_CAST(pinRefp, VarRef)) {
|
||||
AstVarRef* const newp = new AstVarRef{vrp->fileline(), vrp->varp(), access};
|
||||
newp->classOrPackagep(vrp->classOrPackagep());
|
||||
return newp;
|
||||
return pinRefAsVarRef(access);
|
||||
} else {
|
||||
const AstVarXRef* const xrp = VN_AS(pinRefp, VarXRef);
|
||||
AstVarXRef* const newp
|
||||
|
||||
Reference in New Issue
Block a user