Add AST_EDGE support to AstNode::detect_latch(), fixes #2241

Signed-off-by: Claire Wolf <claire@symbioticeda.com>
This commit is contained in:
Claire Wolf 2020-07-10 18:41:13 +02:00
parent c0bcbe1f62
commit f9ed09423e
1 changed files with 2 additions and 0 deletions

View File

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