mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Fix remaining cppcheck errors (#6319)
Fixed the non const-related issue and added suppressions for the const ones. With that `make cppcheck` should be clean.
This commit is contained in:
+1
-1
@@ -469,7 +469,7 @@ class UnknownVisitor final : public VNVisitor {
|
||||
nodep->bitp()->cloneTreePure(false)};
|
||||
// Note below has null backp(); the Edit function knows how to deal with that.
|
||||
condp = V3Const::constifyEdit(condp);
|
||||
AstNodeDType* nodeDtp = nodep->dtypep()->skipRefp();
|
||||
const AstNodeDType* const nodeDtp = nodep->dtypep()->skipRefp();
|
||||
if (condp->isOne()) {
|
||||
// We don't need to add a conditional; we know the existing expression is ok
|
||||
VL_DO_DANGLING(condp->deleteTree(), condp);
|
||||
|
||||
Reference in New Issue
Block a user