mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internal: cppcheck fixes. No functional change intended.
This commit is contained in:
@@ -852,6 +852,7 @@ void AstNode::iterateAndNext(VNVisitor& v) {
|
||||
#ifdef VL_DEBUG // Otherwise too hot of a function for debug
|
||||
UASSERT_OBJ(!(nodep && !nodep->m_backp), nodep, "iterateAndNext node has no back");
|
||||
#endif
|
||||
// cppcheck-suppress knownConditionTrueFalse
|
||||
if (nodep) ASTNODE_PREFETCH(nodep->m_nextp);
|
||||
while (nodep) { // effectively: if (!this) return; // Callers rely on this
|
||||
if (nodep->m_nextp) ASTNODE_PREFETCH(nodep->m_nextp->m_nextp);
|
||||
|
||||
Reference in New Issue
Block a user