From: Clifford Wolf Date: Fri, 15 Jun 2018 16:56:44 +0000 (+0200) Subject: Bugfix in liberty parser (as suggested by aiju in #569) X-Git-Tag: yosys-0.8~72 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ff0ce4973db6f91b717b3771d8a9ca4cdb3a191;p=yosys.git Bugfix in liberty parser (as suggested by aiju in #569) Signed-off-by: Clifford Wolf --- diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc index c9b6a54b2..b9e53a4be 100644 --- a/frontends/liberty/liberty.cc +++ b/frontends/liberty/liberty.cc @@ -148,7 +148,7 @@ static bool parse_func_reduce(RTLIL::Module *module, std::vector &stack } if (0 <= top && stack[top].type == 2) { - if (next_token.type == '*' || next_token.type == '&' || next_token.type == 0 || next_token.type == '(') + if (next_token.type == '*' || next_token.type == '&' || next_token.type == 0 || next_token.type == '(' || next_token.type == '!') return false; stack[top].type = 3; return true;