diff --git a/src/compiler/parse_table.cc b/src/compiler/parse_table.cc index 8ea1f8c4..ffa57760 100644 --- a/src/compiler/parse_table.cc +++ b/src/compiler/parse_table.cc @@ -154,8 +154,7 @@ void ParseState::each_referenced_state(function fn) { if ((action.type == ParseActionTypeShift && !action.extra) || action.type == ParseActionTypeRecover) fn(&action.state_index); for (auto &entry : nonterminal_entries) - if (entry.second != (ParseStateId)(-1)) - fn(&entry.second); + fn(&entry.second); } bool ParseState::operator==(const ParseState &other) const {