mirror of
https://github.com/verilator/verilator.git
synced 2025-01-26 08:14:06 +00:00
Internals: Avoid coredump debugging bug1135.
This commit is contained in:
parent
b12dd526f9
commit
f190d12802
@ -510,6 +510,7 @@ private:
|
|||||||
// delete it in later optimizations.
|
// delete it in later optimizations.
|
||||||
AstVar* pinOldVarp = pinp->modVarp();
|
AstVar* pinOldVarp = pinp->modVarp();
|
||||||
AstVar* pinNewVarp = pinOldVarp->clonep();
|
AstVar* pinNewVarp = pinOldVarp->clonep();
|
||||||
|
if (!pinNewVarp) pinOldVarp->v3fatalSrc("Cloning failed");
|
||||||
|
|
||||||
AstNode* connectRefp = pinp->exprp();
|
AstNode* connectRefp = pinp->exprp();
|
||||||
if (!connectRefp->castConst() && !connectRefp->castVarRef()) {
|
if (!connectRefp->castConst() && !connectRefp->castVarRef()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user