mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix unsound assertion in V3Delayed (#6305)
This commit is contained in:
+5
-1
@@ -469,7 +469,11 @@ class DelayedVisitor final : public VNVisitor {
|
||||
varp = new AstVar{flp, VVarType::BLOCKTEMP, name, dtypep};
|
||||
modp->addStmtsp(varp);
|
||||
}
|
||||
UASSERT_OBJ(varp->dtypep()->isSame(dtypep), flp, "Invalid type for temporary AstVar");
|
||||
|
||||
// We should be able to assert this here, but unfortuantely
|
||||
// 'isAssignmentCompatible' does not exist as of right now.
|
||||
// UASSERT_OBJ(isAssignmentCompatible(varp->dtypep(), dtypep), flp, "Invalid temporary");
|
||||
|
||||
// Create the AstVarScope
|
||||
AstVarScope* const varscp = new AstVarScope{flp, scopep, varp};
|
||||
scopep->addVarsp(varscp);
|
||||
|
||||
Reference in New Issue
Block a user