aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/liberty
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-15 18:56:44 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-15 18:56:44 +0200
commit0ff0ce4973db6f91b717b3771d8a9ca4cdb3a191 (patch)
tree343e599604a811ea93cc63497c41559a98a94174 /frontends/liberty
parent57fc8dd58229d309ba56b374223802936444ecd4 (diff)
downloadyosys-0ff0ce4973db6f91b717b3771d8a9ca4cdb3a191.tar.gz
yosys-0ff0ce4973db6f91b717b3771d8a9ca4cdb3a191.tar.bz2
yosys-0ff0ce4973db6f91b717b3771d8a9ca4cdb3a191.zip
Bugfix in liberty parser (as suggested by aiju in #569)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends/liberty')
-rw-r--r--frontends/liberty/liberty.cc2
1 files changed, 1 insertions, 1 deletions
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<token_t> &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;