mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-08 10:25:19 +00:00
MSVC cannot omit operand in conditional
This commit is contained in:
parent
c9c13c29df
commit
35008e6d40
|
@ -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);
|
||||
}
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue