mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Fix some cppcheck issues. Some dump functions fixed.
This commit is contained in:
+1
-1
@@ -414,7 +414,7 @@ public:
|
||||
// Given an AstNode list (held via AstNode::nextp()), move conditional statements as close
|
||||
// together as possible
|
||||
static AstNode* optimize(AstNode* nodep, const StmtPropertiesAllocator& stmtProperties) {
|
||||
CodeMotionOptimizeVisitor{nodep, stmtProperties};
|
||||
{ CodeMotionOptimizeVisitor{nodep, stmtProperties}; }
|
||||
// It is possible for the head of the list to be moved later such that it is no longer
|
||||
// in head position. If so, rewind the list and return the new head.
|
||||
while (nodep->backp()->nextp() == nodep) nodep = nodep->backp();
|
||||
|
||||
Reference in New Issue
Block a user