Correctly set is_first

From scan-build: Value stored to 'is_first' is never read
This commit is contained in:
Phil Turnbull 2017-06-14 09:52:55 -04:00
parent 040e225a54
commit fdd8792ebc

View file

@ -646,8 +646,8 @@ class ParseTableBuilder {
if (considered_associativity) {
description += " " + to_string(resolution_count++) + ": ";
description += "Specify a left or right associativity in";
bool is_first = true;
for (const ParseAction &action : entry.actions) {
bool is_first = true;
if (action.type == ParseActionTypeReduce) {
if (!is_first) description += " and";
description += " `" + symbol_name(action.symbol) + "`";