From 3a04e0a05158b8b5f8e4eb3f4712c2110c0ffec5 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 4 Oct 2006 00:34:45 +0000 Subject: [PATCH] Fix a dangling reference to NetEParam objects in defparams. --- net_design.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net_design.cc b/net_design.cc index 00467f5ff..4a41f2d13 100644 --- a/net_design.cc +++ b/net_design.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: net_design.cc,v 1.45 2004/10/04 01:10:54 steve Exp $" +#ident "$Id: net_design.cc,v 1.45.2.1 2006/10/04 00:34:45 steve Exp $" #endif # include "config.h" @@ -279,7 +279,7 @@ void NetScope::run_defparams(Design*des) continue; } - bool flag = targ_scope->replace_parameter(perm_name, val); + bool flag = targ_scope->replace_parameter(perm_name, val->dup_expr()); if (! flag) { cerr << val->get_line() << ": warning: parameter " << perm_name << " not found in " @@ -618,6 +618,9 @@ void Design::delete_process(NetProcTop*top) /* * $Log: net_design.cc,v $ + * Revision 1.45.2.1 2006/10/04 00:34:45 steve + * Fix a dangling reference to NetEParam objects in defparams. + * * Revision 1.45 2004/10/04 01:10:54 steve * Clean up spurious trailing white space. *