mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: cppcheck fixes. No functional change. (#6687)
This commit is contained in:
+1
-2
@@ -429,7 +429,7 @@ namespace ModuleInliner {
|
||||
// against it later in V3Scope (and also for tracing, which is inserted
|
||||
//later). Returns ture iff the given port variable should be inlined,
|
||||
// and false if a continuous assignment should be used.
|
||||
bool inlinePort(AstVar* nodep) {
|
||||
bool inlinePort(const AstVar* nodep) {
|
||||
// Interface references are always inlined
|
||||
if (nodep->isIfaceRef()) return true;
|
||||
// Ref ports must be always inlined
|
||||
@@ -544,7 +544,6 @@ void inlineCell(AstNodeModule* modp, AstCell* cellp, bool last) {
|
||||
: cellp->modp()->cloneTree(false);
|
||||
|
||||
// Compute map from original port variables and cells to their clones
|
||||
std::unordered_map<const AstVar*, AstVar*> modVar2Clone;
|
||||
for (AstNode *ap = cellp->modp()->stmtsp(), *bp = inlinedp->stmtsp(); ap || bp;
|
||||
ap = ap->nextp(), bp = bp->nextp()) {
|
||||
UASSERT_OBJ(ap && bp, ap ? ap : bp, "Clone has different number of children");
|
||||
|
||||
Reference in New Issue
Block a user