From 936855c81c3d45d991d72bdf4d57fa4a851aa4b6 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 3 Feb 2013 14:13:16 -0500 Subject: [PATCH] Fix elimination, bug610 _2 test. --- src/V3Dead.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Dead.cpp b/src/V3Dead.cpp index 4ca7c6424..ba7c08a8f 100644 --- a/src/V3Dead.cpp +++ b/src/V3Dead.cpp @@ -206,7 +206,7 @@ private: AstNodeModule* nextmodp; for (AstNodeModule* modp = v3Global.rootp()->modulesp(); modp; modp=nextmodp) { nextmodp = modp->nextp()->castNodeModule(); - if (modp->level()>2 && modp->user1()==0) { + if (modp->level()>2 && modp->user1()==0 && !modp->internal()) { // > 2 because L1 is the wrapper, L2 is the top user module UINFO(4," Dead module "<