Internals: Fix invalid use of user1 in V3Const (#7157)

This commit is contained in:
Geza Lore 2026-02-28 14:51:07 +00:00 committed by GitHub
parent 1e6c1ab106
commit 1716423d07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 46 additions and 50 deletions

View File

@ -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)) {