From: Claire Wolf Date: Fri, 10 Jul 2020 16:41:13 +0000 (+0200) Subject: Add AST_EDGE support to AstNode::detect_latch(), fixes #2241 X-Git-Tag: working-ls180~390^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9ed09423e5fb0b880d895d91ec51c61ffb04213;p=yosys.git Add AST_EDGE support to AstNode::detect_latch(), fixes #2241 Signed-off-by: Claire Wolf --- diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index c4df5c0a0..00f8c8df6 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -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;