Internals: Avoid coredump debugging bug1135.

This commit is contained in:
Wilson Snyder 2017-03-21 18:22:32 -04:00
parent b12dd526f9
commit f190d12802

View File

@ -510,6 +510,7 @@ private:
// delete it in later optimizations.
AstVar* pinOldVarp = pinp->modVarp();
AstVar* pinNewVarp = pinOldVarp->clonep();
if (!pinNewVarp) pinOldVarp->v3fatalSrc("Cloning failed");
AstNode* connectRefp = pinp->exprp();
if (!connectRefp->castConst() && !connectRefp->castVarRef()) {