diff --git a/parse.y b/parse.y index 1aaf24f64..5c4744081 100644 --- a/parse.y +++ b/parse.y @@ -4568,13 +4568,7 @@ port_declaration // output ports are implicitly (on the inside) // variables because "reg" is not valid syntax // here. - } else if (dynamic_cast ($4)) { - use_type = NetNet::IMPLICIT_REG; - } else if (dynamic_cast ($4)) { - use_type = NetNet::IMPLICIT_REG; - } else if (dynamic_cast ($4)) { - use_type = NetNet::IMPLICIT_REG; - } else if (dynamic_cast ($4)) { + } else if ($4) { use_type = NetNet::IMPLICIT_REG; } } @@ -5026,13 +5020,8 @@ module_item // output ports are implicitly (on the inside) // variables because "reg" is not valid syntax // here. - } else if (dynamic_cast ($3)) { + } else if ($3) { use_type = NetNet::IMPLICIT_REG; - } else if (dynamic_cast ($3)) { - use_type = NetNet::IMPLICIT_REG; - } else if (enum_type_t*etype = dynamic_cast ($3)) { - if(etype->base_type == IVL_VT_LOGIC) - use_type = NetNet::IMPLICIT_REG; } if (use_type == NetNet::NONE) pform_set_port_type(@2, $4, NetNet::POUTPUT, $3, $1);