mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Fix recursive module assertion, broken recent lib commit (#5891 partial fix)
This commit is contained in:
+3
-1
@@ -621,7 +621,9 @@ class LinkCellsVisitor final : public VNVisitor {
|
||||
if (libFoundp && libFoundp == nodep) {
|
||||
// Ok
|
||||
} else if (libFoundp && !globalFoundp) {
|
||||
nodep->v3fatalSrc("Module should be found globally if inserted in lib");
|
||||
// Clones are locally made and don't need to user-resolve globally
|
||||
UASSERT_OBJ(nodep->recursiveClone(), nodep,
|
||||
"Module should be found globally if inserted in lib");
|
||||
} else if (libFoundp) {
|
||||
if (!(libFoundp->fileline()->warnIsOff(V3ErrorCode::MODDUP)
|
||||
|| nodep->fileline()->warnIsOff(V3ErrorCode::MODDUP)
|
||||
|
||||
Reference in New Issue
Block a user