]> granicus.if.org Git - re2c/commitdiff
Omit useless check for NULL: default transitions are handled in DFA::prepare
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 2 Apr 2015 14:07:26 +0000 (15:07 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 2 Apr 2015 14:07:26 +0000 (15:07 +0100)
re2c/go_construct.cc

index 75bdace0cfbc264bb29c5742adf6d020e8012022..f999d32401331cb6f9bec66ab0587cb3ee2ea95b 100644 (file)
@@ -196,7 +196,7 @@ void Go::init (const State * from)
        const State * bitmap_state = NULL;
        for (uint i = 0; i < nSpans; ++i)
        {
-               if (span[i].to && span[i].to->isBase)
+               if (span[i].to->isBase)
                {
                        const BitMap *b = BitMap::find (span[i].to);
                        if (b && matches(b->go->span, b->go->nSpans, b->on, span, nSpans, span[i].to))