Internals: Fix invalid use of user1 in V3Const (#7157)
This commit is contained in:
parent
1e6c1ab106
commit
1716423d07
|
|
@ -3343,9 +3343,6 @@ class ConstVisitor final : public VNVisitor {
|
|||
void visit(AstCvtArrayToArray* nodep) override {
|
||||
iterateChildren(nodep);
|
||||
// Handle the case where we have a stream operation inside a cast conversion
|
||||
// To avoid infinite recursion, mark the node as processed by setting user1.
|
||||
if (!nodep->user1()) {
|
||||
nodep->user1(true);
|
||||
// Check for both StreamL and StreamR operations
|
||||
AstNodeStream* streamp = nullptr;
|
||||
bool isReverse = false;
|
||||
|
|
@ -3397,7 +3394,6 @@ class ConstVisitor final : public VNVisitor {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
void visit(AstRelease* nodep) override {
|
||||
// cppcheck-suppress constVariablePointer // children unlinked below
|
||||
if (AstConcat* const concatp = VN_CAST(nodep->lhsp(), Concat)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue