mirror of
https://github.com/verilator/verilator.git
synced 2025-01-24 23:34:45 +00:00
Fix segfault with -Wno-MODDUP
This commit is contained in:
parent
0b9c6ed178
commit
6b7b2612a9
@ -258,7 +258,8 @@ private:
|
||||
nodep->v3warn(MODDUP,"Duplicate declaration of module: "<<nodep->prettyName());
|
||||
foundp->v3warn(MODDUP,"... Location of original declaration");
|
||||
}
|
||||
nodep->unlinkFrBack()->deleteTree();
|
||||
nodep->unlinkFrBack();
|
||||
pushDeletep(nodep); nodep=NULL;
|
||||
} else if (!foundp) {
|
||||
m_mods.insert(nodep->name(), nodep);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user