mv latch check for speed.

This commit is contained in:
Terence Parr 2015-06-18 09:56:53 -07:00
parent 11726e072e
commit 204cf12e86
1 changed files with 2 additions and 2 deletions

View File

@ -330,8 +330,8 @@ public class ParserInterpreter extends Parser {
if ( p.getNumberOfTransitions()>1 ) {
getErrorHandler().sync(this);
int decision = p.decision;
if ( !overrideDecisionReached &&
decision == overrideDecision && _input.index() == overrideDecisionInputIndex)
if ( decision == overrideDecision && _input.index() == overrideDecisionInputIndex &&
!overrideDecisionReached )
{
predictedAlt = overrideDecisionAlt;
overrideDecisionReached = true;