From 4cc5943f90f086a5437863895d07b94596d36c47 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 30 May 2012 23:15:25 -0400 Subject: [PATCH] Leak fix - Null sense item shouldn't disable event --- src/verilog.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/verilog.y b/src/verilog.y index 3395594d2..a3ef77e66 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -1810,8 +1810,8 @@ event_control: // ==IEEE: event_control event_expression: // IEEE: event_expression - split over several senitem { $$ = $1; } - | event_expression yOR senitem { $$ = $1;$1->addNextNull($3); } - | event_expression ',' senitem { $$ = $1;$1->addNextNull($3); } /* Verilog 2001 */ + | event_expression yOR senitem { $$ = $1->addNextNull($3)->castNodeSenItem(); } + | event_expression ',' senitem { $$ = $1->addNextNull($3)->castNodeSenItem(); } /* Verilog 2001 */ ; senitem: // IEEE: part of event_expression, non-'OR' ',' terms