Bugfix in liberty parser (as suggested by aiju in #569)
authorClifford Wolf <clifford@clifford.at>
Fri, 15 Jun 2018 16:56:44 +0000 (18:56 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 15 Jun 2018 16:56:44 +0000 (18:56 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/liberty/liberty.cc

index c9b6a54b2a9a81f28a964dca30fce7bef6791057..b9e53a4bedcf7b1303c5e6803cfcd1de8d142969 100644 (file)
@@ -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;