Add AST_EDGE support to AstNode::detect_latch(), fixes #2241
authorClaire Wolf <claire@symbioticeda.com>
Fri, 10 Jul 2020 16:41:13 +0000 (18:41 +0200)
committerClaire Wolf <claire@symbioticeda.com>
Fri, 10 Jul 2020 16:41:13 +0000 (18:41 +0200)
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
frontends/ast/simplify.cc

index c4df5c0a07ffb9e71e5d76b447344c625c68975d..00f8c8df67cd336814993436369df50110aea2de 100644 (file)
@@ -4231,6 +4231,8 @@ bool AstNode::detect_latch(const std::string &var)
                        case AST_POSEDGE:
                        case AST_NEGEDGE:
                                return false;
+                       case AST_EDGE:
+                               break;
                        case AST_BLOCK:
                                if (!c->detect_latch(var))
                                        return false;