mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: cppcheck fixes. No functional change. (#6687)
This commit is contained in:
@@ -181,7 +181,7 @@ class AstToDfgVisitor final : public VNVisitor {
|
||||
const VAlwaysKwd kwd = nodep->keyword();
|
||||
if (kwd == VAlwaysKwd::CONT_ASSIGN) {
|
||||
// TODO: simplify once CFG analysis can handle arrays
|
||||
if (AstAssignW* const ap = VN_CAST(nodep->stmtsp(), AssignW)) {
|
||||
if (const AstAssignW* const ap = VN_CAST(nodep->stmtsp(), AssignW)) {
|
||||
if (ap->nextp()) return false;
|
||||
// Cannot handle assignment with timing control
|
||||
if (ap->timingControlp()) return false;
|
||||
|
||||
Reference in New Issue
Block a user