From 45ed389fc527457c6def5582f84e7fd869fee8b7 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 25 Apr 2011 13:04:45 -0700 Subject: [PATCH] pform_module_define_port() already deletes the port attribute(s). If there are attributes attached to a module port declaration them pform_bind_attribute() which is called from pform_module_define_port() will delete the attribute list. They do not need to be deleted locally. --- parse.y | 7 ------- 1 file changed, 7 deletions(-) diff --git a/parse.y b/parse.y index 7bc27cee2..727a40286 100644 --- a/parse.y +++ b/parse.y @@ -2106,7 +2106,6 @@ port_declaration port_declaration_context.sign_flag = $5; delete port_declaration_context.range; port_declaration_context.range = $6; - delete $1; delete[]$7; $$ = ptmp; } @@ -2125,7 +2124,6 @@ port_declaration port_declaration_context.sign_flag = $4; delete port_declaration_context.range; port_declaration_context.range = use_range; - delete $1; delete[]$5; $$ = ptmp; } @@ -2143,7 +2141,6 @@ port_declaration port_declaration_context.sign_flag = $5; delete port_declaration_context.range; port_declaration_context.range = $6; - delete $1; delete[]$7; $$ = ptmp; } @@ -2161,7 +2158,6 @@ port_declaration port_declaration_context.sign_flag = $5; delete port_declaration_context.range; port_declaration_context.range = $6; - delete $1; delete[]$7; $$ = ptmp; } @@ -2179,7 +2175,6 @@ port_declaration port_declaration_context.sign_flag = $5; delete port_declaration_context.range; port_declaration_context.range = $6; - delete $1; delete[]$7; $$ = ptmp; } @@ -2200,7 +2195,6 @@ port_declaration pform_make_reginit(@7, name, $9); - delete $1; delete[]$7; $$ = ptmp; } @@ -2219,7 +2213,6 @@ port_declaration port_declaration_context.sign_flag = $4; delete port_declaration_context.range; port_declaration_context.range = use_range; - delete $1; delete[]$5; $$ = ptmp; }