mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +02:00
Internals: Cleanup cppcheck warnings (#6317)
`make cppcheck-4` is now clean.
This commit is contained in:
@@ -164,7 +164,9 @@ class DataflowExtractVisitor final : public VNVisitor {
|
||||
|
||||
void visit(AstAssignW* nodep) override {
|
||||
// Mark LHS variable as combinationally driven
|
||||
if (AstVarRef* const vrefp = VN_CAST(nodep->lhsp(), VarRef)) vrefp->varp()->user4(true);
|
||||
if (const AstVarRef* const vrefp = VN_CAST(nodep->lhsp(), VarRef)) {
|
||||
vrefp->varp()->user4(true);
|
||||
}
|
||||
//
|
||||
iterateChildrenConst(nodep);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user