Make the --prev-abi flag work w/ the newest abi change

This commit is contained in:
Max Brunsfeld 2020-09-08 10:58:20 -07:00
parent 85e4636c80
commit ff488f89c9
2 changed files with 7 additions and 12 deletions

View file

@ -109,7 +109,9 @@ impl Generator {
self.add_alias_sequences();
}
self.add_non_terminal_alias_map();
if self.next_abi {
self.add_non_terminal_alias_map();
}
let mut main_lex_table = LexTable::default();
swap(&mut main_lex_table, &mut self.main_lex_table);