]> granicus.if.org Git - re2c/commitdiff
Removed useless NULL check (all NULL destination states handled in DFA::prepare).
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 3 Apr 2015 21:23:36 +0000 (22:23 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 3 Apr 2015 21:23:36 +0000 (22:23 +0100)
re2c/code.cc

index 9408f222c199b593f9731e12ad2b789016f21435..1a3827f640a797789bb305fab838ccbce1b469a4 100644 (file)
@@ -922,7 +922,7 @@ void DFA::findBaseState()
                        {
                                State *to = s->go.span[i].to;
 
-                               if (to && to->isBase)
+                               if (to->isBase)
                                {
                                        to = to->go.span[0].to;
                                        uint nSpans = merge(span, s, to);