From 6b18c883542c228e72dc9401d8a323d0c71b1856 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 2 Apr 2015 15:07:26 +0100 Subject: [PATCH] Omit useless check for NULL: default transitions are handled in DFA::prepare --- re2c/go_construct.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/go_construct.cc b/re2c/go_construct.cc index 75bdace0..f999d324 100644 --- a/re2c/go_construct.cc +++ b/re2c/go_construct.cc @@ -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)) -- 2.40.0