mirror of
https://github.com/verilator/verilator.git
synced 2026-09-08 02:28:43 +02:00
Internals: Fix same() called outside of sameTree (#4561).
This commit is contained in:
+1
-1
@@ -1000,7 +1000,7 @@ static void eliminate(AstNode* logicp,
|
||||
// Substitute in the new tree
|
||||
UASSERT_OBJ(nodep->access().isReadOnly(), nodep,
|
||||
"Can't replace lvalue assignments with const var");
|
||||
UASSERT_OBJ(!(VN_IS(substp, NodeVarRef) && nodep->same(substp)),
|
||||
UASSERT_OBJ(!(VN_IS(substp, NodeVarRef) && nodep->isSame(substp)),
|
||||
// Prevent an infinite loop...
|
||||
substp, "Replacing node with itself; perhaps circular logic?");
|
||||
// The replacement
|
||||
|
||||
Reference in New Issue
Block a user