Avoid empty initializer list for ts_alias_sequences
Fixes a bug introduced in 68b089b41e
This commit is contained in:
parent
68b089b41e
commit
13c0aa7dbb
1 changed files with 5 additions and 0 deletions
|
|
@ -364,6 +364,11 @@ impl Generator {
|
|||
indent!(self);
|
||||
for (i, production_info) in self.parse_table.production_infos.iter().enumerate() {
|
||||
if production_info.alias_sequence.is_empty() {
|
||||
// Work around MSVC's intolerance of empty array initializers by
|
||||
// explicitly zero-initializing the first element.
|
||||
if i == 0 {
|
||||
add_line!(self, "[0] = {{}},");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue