mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +02:00
Fix some cppcheck warnings. No functional change intended.
This commit is contained in:
+3
-3
@@ -325,9 +325,9 @@ void V3FuncOpt::funcOptAll(AstNetlist* nodep) {
|
||||
V3ThreadScope threadScope;
|
||||
for (AstNodeModule *modp = nodep->modulesp(), *nextModp; modp; modp = nextModp) {
|
||||
nextModp = VN_AS(modp->nextp(), NodeModule);
|
||||
for (AstNode *nodep = modp->stmtsp(), *nextNodep; nodep; nodep = nextNodep) {
|
||||
nextNodep = nodep->nextp();
|
||||
if (AstCFunc* const cfuncp = VN_CAST(nodep, CFunc)) {
|
||||
for (AstNode *stmtp = modp->stmtsp(), *nextStmtp; stmtp; stmtp = nextStmtp) {
|
||||
nextStmtp = stmtp->nextp();
|
||||
if (AstCFunc* const cfuncp = VN_CAST(stmtp, CFunc)) {
|
||||
threadScope.enqueue([cfuncp]() { FuncOptVisitor::apply(cfuncp); });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user