From dee86f908a226eef59fddaaf2c2edd0da13c421f Mon Sep 17 00:00:00 2001 From: Phil Turnbull Date: Wed, 7 Jun 2017 17:05:39 -0400 Subject: [PATCH] Correctly check type is ParseActionTypeRecover --- src/compiler/parse_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parse_table.cc b/src/compiler/parse_table.cc index 37707ed0..cf91154f 100644 --- a/src/compiler/parse_table.cc +++ b/src/compiler/parse_table.cc @@ -151,7 +151,7 @@ bool ParseState::has_shift_action() const { void ParseState::each_referenced_state(function fn) { for (auto &entry : terminal_entries) for (ParseAction &action : entry.second.actions) - if (action.type == ParseActionTypeShift || ParseActionTypeRecover) + if (action.type == ParseActionTypeShift || action.type == ParseActionTypeRecover) fn(&action.state_index); for (auto &entry : nonterminal_entries) fn(&entry.second);