diff options
Diffstat (limited to 'src/cmd/gc/bisonerrors')
-rwxr-xr-x | src/cmd/gc/bisonerrors | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/gc/bisonerrors b/src/cmd/gc/bisonerrors index 8886a8e52..1f97fc8ce 100755 --- a/src/cmd/gc/bisonerrors +++ b/src/cmd/gc/bisonerrors @@ -35,6 +35,9 @@ grammar && NF>0 { } rulelhs[$1] = r rulesize[$1] = NF-2 + if(rulesize[$1] == 1 && $3 == "%empty") { + rulesize[$1] = 0 + } if(rulesize[$1] == 3 && $3 $4 $5 == "/*empty*/") { rulesize[$1] = 0 } |