mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 18:58:51 +02:00
Internals: cppcheck fixes. No functional change. (#6687)
This commit is contained in:
@@ -269,8 +269,9 @@ class DataflowOptimize final {
|
||||
}
|
||||
// TODO: remove once Actives can tolerate NEVER SenItems
|
||||
if (AstSenItem* senItemp = VN_CAST(nodep, SenItem)) {
|
||||
senItemp->foreach(
|
||||
[](AstVarRef* refp) { DfgVertexVar::setHasExtRdRefs(refp->varScopep()); });
|
||||
senItemp->foreach([](const AstVarRef* refp) {
|
||||
DfgVertexVar::setHasExtRdRefs(refp->varScopep());
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (AstVar* const varp = VN_CAST(nodep, Var)) {
|
||||
|
||||
Reference in New Issue
Block a user