aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/verilog/verilog_parser.y
diff options
context:
space:
mode:
authorAnonymous Maarten <anonymous.maarten@gmail.com>2020-06-17 13:51:02 +0200
committerAnonymous Maarten <anonymous.maarten@gmail.com>2020-06-17 15:10:08 +0200
commit35008e6d40af212655b549f481f58f9c066be08a (patch)
treef87377f61b0a6f08d6f773f2760cd745b828df3c /frontends/verilog/verilog_parser.y
parentc9c13c29dfcbb9c54f1d2388e623829b6f5a0c25 (diff)
downloadyosys-35008e6d40af212655b549f481f58f9c066be08a.tar.gz
yosys-35008e6d40af212655b549f481f58f9c066be08a.tar.bz2
yosys-35008e6d40af212655b549f481f58f9c066be08a.zip
MSVC cannot omit operand in conditional
Diffstat (limited to 'frontends/verilog/verilog_parser.y')
-rw-r--r--frontends/verilog/verilog_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y
index b34a62248..15c231f3b 100644
--- a/frontends/verilog/verilog_parser.y
+++ b/frontends/verilog/verilog_parser.y
@@ -1481,7 +1481,7 @@ enum_name_decl:
delete $1;
SET_AST_NODE_LOC(node, @1, @1);
delete node->children[0];
- node->children[0] = $2 ?: new AstNode(AST_NONE);
+ node->children[0] = $2 ? $2 : new AstNode(AST_NONE);
astbuf2->children.push_back(node);
}
;