mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Add some additional dangling checks. No functional change intended
This commit is contained in:
+1
-1
@@ -1229,7 +1229,7 @@ class DelayedVisitor final : public VNVisitor {
|
||||
// Replace with result
|
||||
currp->replaceWith(exprp->resultp()->unlinkFrBack());
|
||||
// Get rid of the AstExprStmt
|
||||
VL_DO_DANGLING(pushDeletep(currp), currp);
|
||||
VL_DO_DANGLING2(pushDeletep(currp), currp, exprp);
|
||||
} else if (AstVarRef* const refp = VN_CAST(currp, VarRef)) {
|
||||
// Ignore reads (e.g.: '_[*here*] <= _')
|
||||
if (refp->access().isReadOnly()) return;
|
||||
|
||||
Reference in New Issue
Block a user