From 6b7b2612a9fd2d6dedc9dfbb4496ed84b229877a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 8 Jan 2010 14:03:00 -0500 Subject: [PATCH] Fix segfault with -Wno-MODDUP --- src/V3LinkCells.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/V3LinkCells.cpp b/src/V3LinkCells.cpp index fc45ee4b7..c20e90c76 100644 --- a/src/V3LinkCells.cpp +++ b/src/V3LinkCells.cpp @@ -258,7 +258,8 @@ private: nodep->v3warn(MODDUP,"Duplicate declaration of module: "<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); }